BoundedInputStream.read() treats max differently from
BoundedInputStream.read(byte[]...)
----------------------------------------------------------------------------------------
Key: IO-273
URL: https://issues.apache.org/jira/browse/IO-273
Project: Commons IO
Issue Type: Bug
Components: Streams/Writers
Reporter: Sebb
Priority: Minor
BoundedInputStream.read() treats max differently from
BoundedInputStream.read(byte[]...)
read() checks for pos == max, whereas read(byte[]...) checks for pos >= max.
The latter check is safer (works even if pos overshoots max).
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira