[ http://issues.apache.org/jira/browse/IO-102?page=all ]

Henri Yandell resolved IO-102.
------------------------------

    Resolution: Fixed

svn ci -m "Applying my patch from #IO-102 - fixes readSwappedLong(InputStream) 
for the possibility that not all 8 bytes would be read by input.read(bytes)" 

Sending        src/java/org/apache/commons/io/EndianUtils.java
Transmitting file data .
Committed revision 482840.

> Potential unread bytes in readSwappedLong(InputStream)
> ------------------------------------------------------
>
>                 Key: IO-102
>                 URL: http://issues.apache.org/jira/browse/IO-102
>             Project: Commons IO
>          Issue Type: Bug
>          Components: Utilities
>            Reporter: Henri Yandell
>            Priority: Minor
>             Fix For: 1.3
>
>         Attachments: IO-102.patch
>
>
> In:
>         byte[] bytes = new byte[8];
>         input.read( bytes );
>         return readSwappedLong( bytes, 0 );
> There is no check on the int return value from input.read, so it's possible 
> that 8 bytes won't be read.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to