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

Conversation

Adenilson
Copy link

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 #4112.

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.
@Cyan4973 Cyan4973 merged commit 1eb32ff into facebook:dev Aug 9, 2024
93 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants