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

2013-02-20 Thread Wurstbrot mit Senf (JIRA)

 [ 
https://issues.apache.org/jira/browse/COMPRESS-219?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Wurstbrot mit Senf updated COMPRESS-219:


Attachment: ZipArchiveInputStreamTest.java

Modified test (NIO.2)

 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: compress-219-test.patch, test-linux.zip, 
 ZipArchiveInputStreamTest.java


 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


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

2013-02-20 Thread Stefan Bodewig (JIRA)

 [ 
https://issues.apache.org/jira/browse/COMPRESS-219?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Stefan Bodewig updated COMPRESS-219:


Fix Version/s: 1.5

 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
 Fix For: 1.5

 Attachments: compress-219-test.patch, test-linux.zip, 
 ZipArchiveInputStreamTest.java


 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


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

2013-02-18 Thread Wurstbrot mit Senf (JIRA)

 [ 
https://issues.apache.org/jira/browse/COMPRESS-219?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Wurstbrot mit Senf updated COMPRESS-219:


Attachment: test-linux.zip

This is the zip file that causes the problems.

 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


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

2013-02-18 Thread Stefan Bodewig (JIRA)

 [ 
https://issues.apache.org/jira/browse/COMPRESS-219?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Stefan Bodewig updated COMPRESS-219:


Attachment: compress-219-test.patch

I've copied your test archive to src/test/resources/COMPRESS-219.zip and 
applied the attached test to compress' trunk and it passes.

Is it possible we've fixed the problem already in trunk?  Or am I missing 
anything in the test?

 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: compress-219-test.patch, 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