You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Wurstbrot mit Senf (JIRA)" <ji...@apache.org> on 2013/02/18 10:41:12 UTC

[jira] [Created] (COMPRESS-219) ZipArchiveInputStream: ArrayIndexOutOfBoundsException when extracting a STORED zip file entry from within a zip.

Wurstbrot mit Senf created COMPRESS-219:
-------------------------------------------

             Summary: ZipArchiveInputStream: ArrayIndexOutOfBoundsException when extracting a STORED zip file entry from within a zip.
                 Key: COMPRESS-219
                 URL: https://issues.apache.org/jira/browse/COMPRESS-219
             Project: Commons Compress
          Issue Type: Bug
          Components: Archivers
    Affects Versions: 1.4.1
         Environment: Windows (Linux as well)
            Reporter: Wurstbrot mit Senf
            Priority: Minor
         Attachments: test-linux.zip

When trying to read out a ZIP file, that has been stored (Method STORE, not DEFLATE!, with DEFLATE it seems OK) in another ZIP file using the ZipArchiveInputStream, I do get an ArrayIndexOutOfBoundsException when doing the arraycopy in ZipArchiveInputStream#readStored(byte[], int, int) (line 362) because the "toRead" is not decreased by the buf.offsetInBuffer.

I will add the zip in question as attachment.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira