Skip to content

Memory Leak Detected in lib7zip When Parsing Malformed XZ Files #107

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

vsheludchenkov-nord
Copy link

Hi,

While testing malformed files, we identified a memory leak in lib7zip that occurs when the library fails to parse an XZ archive.

Please use the attached test file (test.xz) to reproduce and verify the issue.
test.xz.zip

Best regards,
Vitalii Sheludchenkov

@ip7z
Copy link
Owner

ip7z commented Mar 28, 2025

I'll fix the code for that memory leak.
I can fix it in this function or in Xzs_ReadBackward function that calls that function.
Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants