rubyzip/lib/zip/ioextras
Robert Haines 2ea805c951 Check `number_of_bytes` before comparison in read.
If an input stream has been read from, and left some data in the
internal buffer, then a subsequent `read`, with no amount of bytes to be
read having been specified, will raise an error when comparing to `nil`.
This fix checks that the number of bytes specified in the `read` is not
`nil` before comparing with the size of the internal buffer.

Fixes #461.
2020-11-08 17:20:53 +00:00
..
abstract_input_stream.rb Check `number_of_bytes` before comparison in read. 2020-11-08 17:20:53 +00:00
abstract_output_stream.rb Fix Style/SpecialGlobalVars cop. 2020-02-15 16:26:32 +00:00