commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Henri Yandell (JIRA)" <j...@apache.org>
Subject [jira] Updated: (IO-102) Potential unread bytes in readSwappedLong(InputStream)
Date Wed, 06 Dec 2006 00:01:29 GMT
     [ http://issues.apache.org/jira/browse/IO-102?page=all ]

Henri Yandell updated IO-102:
-----------------------------

    Component/s: Utilities

> 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: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message