-
Notifications
You must be signed in to change notification settings - Fork 976
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
.net core zip+aes ReadAsync failed on one of files #572
Comments
It looks like calling That implementation calls TransformFinalBlock is called with a inputCount of 28, which is (presumably not cooincidentaly) the combined size of the AES header and auth block in the encrypted stream. A few quick thoughts:
|
Yeah, 3 is probably the "right" way, and 1 is probably the "safest" way. If that wasn't clear @ShadowTeolog, your code should work if you use the non-async read: var result = zipStream.Read(buffer, 0, buffer.Length); |
Yes, sync read work flawless. |
I think it's only currently an issue with stored entries (because for deflated entries, the call to ReadAsync goes through |
@ShadowTeolog You should no longer get this error with the new 1.3.2 release, though the stream reads won't actually be async yet. |
Steps to reproduce
1.open archive with password "TestStorage"
2.try extract file "[www/autopilotandbridge/home.png]" using
Expected behavior
file is extracted
Actual behavior
Got exception
Version of SharpZipLib
Obtained from (only keep the relevant lines)
ConsoleApp2.zip
The text was updated successfully, but these errors were encountered: