Too bad this hasn't been found two weeks before.master
@@ -214,6 +214,7 @@ Larry Streepy | |||||
Les Hughes | Les Hughes | ||||
Levi Cook | Levi Cook | ||||
lucas | lucas | ||||
Lucas Werkmeister | |||||
Ludovic Claude | Ludovic Claude | ||||
Maarten Coene | Maarten Coene | ||||
Magesh Umasankar | Magesh Umasankar | ||||
@@ -7,6 +7,10 @@ Changes that could break older environments: | |||||
Fixed bugs: | Fixed bugs: | ||||
----------- | ----------- | ||||
* ArrayIndexOutOfBoundsException when ZIP extra fields are read and | |||||
the entry contains an UnparseableExtraField. | |||||
https://issues.apache.org/jira/browse/COMPRESS-317 | |||||
Other changes: | Other changes: | ||||
-------------- | -------------- | ||||
@@ -882,6 +882,10 @@ | |||||
<name> | <name> | ||||
<last>lucas</last> | <last>lucas</last> | ||||
</name> | </name> | ||||
<name> | |||||
<first>Lucas</first> | |||||
<last>Werkmeister</last> | |||||
</name> | |||||
<name> | <name> | ||||
<first>Ludovic</first> | <first>Ludovic</first> | ||||
<last>Claude</last> | <last>Claude</last> | ||||
@@ -361,7 +361,7 @@ public class ZipEntry extends java.util.zip.ZipEntry implements Cloneable { | |||||
private ZipExtraField[] getMergedFields() { | private ZipExtraField[] getMergedFields() { | ||||
final ZipExtraField[] zipExtraFields = | final ZipExtraField[] zipExtraFields = | ||||
copyOf(extraFields, extraFields.length + 1); | copyOf(extraFields, extraFields.length + 1); | ||||
zipExtraFields[zipExtraFields.length] = unparseableExtra; | |||||
zipExtraFields[extraFields.length] = unparseableExtra; | |||||
return zipExtraFields; | return zipExtraFields; | ||||
} | } | ||||