Closed Sardelka9515 closed 2 years ago
Stream
Return the acutal length of the decompressed file. Or throw an expection if it's not possibile.
When accesing Stream.Length propperty from the object returned by ZipFile.GetInputStream(), execution hangs.
Stream.Length
It should throw, not sure what is happening in your case:
https://github.com/icsharpcode/SharpZipLib/blob/519ed7367daf0a5ad7f2d36bee6e994ffcd7e9e8/src/ICSharpCode.SharpZipLib/Zip/Compression/Streams/InflaterInputStream.cs#L534-L544
Ah, my bad. Exception not caught correctly, nevermind
Steps to reproduce
Stream
object returned by ZipFile.GetInputStream(), and try to get it's length.Expected behavior
Return the acutal length of the decompressed file. Or throw an expection if it's not possibile.
Actual behavior
When accesing
Stream.Length
propperty from the object returned by ZipFile.GetInputStream(), execution hangs.Version of SharpZipLib
Obtained from (only keep the relevant lines)