Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
Description
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).