Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[zstd][leak] Avoid memory leak on early return of ZSTD_generateSequence #4115

Merged
merged 1 commit into from
Aug 9, 2024

Commits on Aug 7, 2024

  1. [zstd][leak] Avoid memory leak on early return of ZSTD_generateSequence

    Sanity checks on a few of the context parameters (i.e. workers and block size)
    may prompt an early return on ZSTD_generateSequences.
    
    Allocating the destination buffer past those return points avoids a potential
    memory leak.
    
    This patch should fix issue facebook#4112.
    Adenilson Cavalcanti committed Aug 7, 2024
    Configuration menu
    Copy the full SHA
    a40bad8 View commit details
    Browse the repository at this point in the history