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