Potential unread bytes in readSwappedLong(InputStream)
------------------------------------------------------

                 Key: IO-102
                 URL: http://issues.apache.org/jira/browse/IO-102
             Project: Commons IO
          Issue Type: Bug
            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