mirror of
https://github.com/haraldk/TwelveMonkeys.git
synced 2026-05-01 00:00:02 -04:00
#792: Guard against incorrect JPEG Huffman Table class
This commit is contained in:
+2
-2
@@ -145,8 +145,8 @@ final class HuffmanTable extends Segment {
|
|||||||
}
|
}
|
||||||
|
|
||||||
int c = temp >> 4;
|
int c = temp >> 4;
|
||||||
if (c > 2) {
|
if (c > 1) {
|
||||||
throw new IIOException("Unexpected JPEG Huffman Table class (> 2): " + c);
|
throw new IIOException("Unexpected JPEG Huffman Table class (> 1): " + c);
|
||||||
}
|
}
|
||||||
|
|
||||||
table.tc[t][c] = true;
|
table.tc[t][c] = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user