diff options
author | Jay Berkenbilt <ejb@ql.org> | 2009-03-09 16:16:19 +0100 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2009-03-09 16:16:19 +0100 |
commit | aa92e1ddb2bc18b45f9d2a09235beaa9da9ac006 (patch) | |
tree | 480ee8c1f117cf32b9301185b5852bf59ce206b0 | |
parent | 2af08ee3984d2f5f2ea3432572bcb631e3085b7e (diff) | |
download | qpdf-aa92e1ddb2bc18b45f9d2a09235beaa9da9ac006.tar.zst |
fix table full check again
git-svn-id: svn+q:///qpdf/trunk@662 71b93d88-0707-0410-a8cf-f5a4172ac649
-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 4ab4c16d..25cfdc9a 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 == 4097) + if (last_idx == 4096) { throw QEXC::General("LZWDecoder: table full"); } |