Stream returned by ZipFile.GetInputStream() hangs when accessing Length property
Sardelka9515 opened this issue · 2 comments
Sardelka9515 commented
Steps to reproduce
- Create a new ZipFile instance
- Get a
Stream
object returned by ZipFile.GetInputStream(), and try to get it's length. - Program stuck
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)
- Package installed using NuGet
1.3.3
piksel commented
It should throw, not sure what is happening in your case:
Sardelka9515 commented
Ah, my bad. Exception not caught correctly, nevermind