Quantcast
Channel: DotNetZip Library
Viewing all articles
Browse latest Browse all 664

Created Issue: BZip2InputStream.Read returns -1 instead of 0 [16069]

$
0
0
According to documentation on Stream class, the Read method should return 0 if the end of the stream has been reached, and there's no single mention of -1 possibility. But BZip2InputStream returns -1 if EOF is encountered.

This breaks some code relying on 0 as the EOF. I believe that Stream.CopyTo(...) will break as it checks for 0 as EOF.

Viewing all articles
Browse latest Browse all 664

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>