History | Log In     View a printable version of the current page. Get help!  
Issue Details [XML]

Key: SES-263
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Arjohn Kampman
Reporter: Arjohn Kampman
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Sesame

IOUtil.readBytes(InputStream, int) throws NegativeArraySizeException when stream is at EOF

Created: 11/Apr/06 11:24 AM   Updated: 11/Apr/06 12:17 PM
Component/s: None
Affects Version/s: 2.0-alpha-3, 2.0-alpha-2, 2.0-alpha-1, 1.2.4, 1.2.3, 1.2.2, 1.2.1, 1.2, 1.2-RC2, 1.2-RC1, 1.1.3, 1.1.2, 1.1.1, 1.1
Fix Version/s: 1.2.5, 2.0-alpha-4


 Description   
IOUtil.readBytes(InputStream in, int maxBytes) throws a java.lang.NegativeArraySizeException when the supplied stream is at EOF. This potentially affects all code using this method: BinaryTableResultsReader in Sesame 1.1 and later, MemoryStore and NativeStore in Sesame 2.x.

 All   Comments   Change History      Sort Order:
Comment by Arjohn Kampman [11/Apr/06 12:17 PM]
Method now returns a byte array of size 0 when '-1' bytes have been read ('-1' signalling EOF).