-
Notifications
You must be signed in to change notification settings - Fork 485
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
Hang while opening BZip2 #842
Labels
Comments
Stepping through, the code correctly identifies the EOF here: sharpcompress/src/SharpCompress/Compressors/BZip2/CBZip2InputStream.cs Lines 394 to 397 in 6fc4b04
and then proceeds to... do nothing?
Perhaps the fix is just to make this function actually throw an exception instead of silently passing? |
Seems like I should have ported the exception. |
Merged
So as #850 is merged, this should be closed? |
Closed
Thanks! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In continuation of #841.
The following code results in an infinite loop in SharpCompress:
The stack trace (created with the
dotnet stack
tool):This byte sequence written to a file gets detected as "bzip2 compressed data" by the
file
tool, butbzip2
fails to read it with the error message "bzip2: Compressed file ends unexpectedly".Found by Linux Verification Center (linuxtesting.org) with AFL++ and SharpFuzz.
Reporter: Valery Korolyov ([email protected])
Organization: Garda Technologies ([email protected])
The text was updated successfully, but these errors were encountered: