Skip to content

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

Open
vsheludchenkov-nord wants to merge 2 commits intoip7z:mainfrom
vsheludchenkov-nord:main
Open

Memory Leak Detected in lib7zip When Parsing Malformed XZ Files#107
vsheludchenkov-nord wants to merge 2 commits intoip7z:mainfrom
vsheludchenkov-nord:main

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