diff options
Diffstat (limited to 'libqpdf')
-rw-r--r-- | libqpdf/Pl_LZWDecoder.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libqpdf/Pl_LZWDecoder.cc b/libqpdf/Pl_LZWDecoder.cc index 95dcec37..4ab4c16d 100644 --- a/libqpdf/Pl_LZWDecoder.cc +++ b/libqpdf/Pl_LZWDecoder.cc @@ -199,7 +199,7 @@ Pl_LZWDecoder::handleCode(int code) } } unsigned int last_idx = 258 + table_size; - if (last_idx + code_change_delta == 4096) + if (last_idx + code_change_delta == 4097) { throw QEXC::General("LZWDecoder: table full"); } |