mirror of
https://github.com/haraldk/TwelveMonkeys.git
synced 2026-05-28 00:00:03 -04:00
#328 CCITTFaxDecoderStream AIOOBE fix
This commit is contained in:
+3
-3
@@ -88,8 +88,8 @@ final class CCITTFaxDecoderStream extends FilterInputStream {
|
||||
fillOrder, "Expected fill order 1 or 2: %s"
|
||||
);
|
||||
|
||||
this.changesReferenceRow = new int[columns + 1];
|
||||
this.changesCurrentRow = new int[columns + 1];
|
||||
this.changesReferenceRow = new int[columns + 2];
|
||||
this.changesCurrentRow = new int[columns + 2];
|
||||
|
||||
switch (type) {
|
||||
case TIFFExtension.COMPRESSION_CCITT_T4:
|
||||
@@ -220,7 +220,7 @@ final class CCITTFaxDecoderStream extends FilterInputStream {
|
||||
}
|
||||
}
|
||||
|
||||
private int getNextChangingElement(final int a0, final boolean white) throws IOException {
|
||||
private int getNextChangingElement(final int a0, final boolean white) {
|
||||
int start = (lastChangingElement & 0xFFFF_FFFE) + (white ? 0 : 1);
|
||||
if (start > 2) {
|
||||
start -= 2;
|
||||
|
||||
Reference in New Issue
Block a user