jackrabbit-oak-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Mueller (Created) (JIRA)" <j...@apache.org>
Subject [jira] [Created] (OAK-54) IOUtils.readVarInt and readVarLong can result in an endless loop on EOF
Date Tue, 10 Apr 2012 10:01:17 GMT
IOUtils.readVarInt and readVarLong can result in an endless loop on EOF
-----------------------------------------------------------------------

                 Key: OAK-54
                 URL: https://issues.apache.org/jira/browse/OAK-54
             Project: Jackrabbit Oak
          Issue Type: Improvement
          Components: mk
            Reporter: Thomas Mueller
            Assignee: Thomas Mueller
            Priority: Minor


The following lines result in an endless loop:

  IOUtils.readVarInt(new ByteArrayInputStream(new byte[0]));
  IOUtils.readVarLong(new ByteArrayInputStream(new byte[0]));

Both should throw an EOFException in my view.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message