diff options
author | Jay Berkenbilt <ejb@ql.org> | 2009-03-08 19:58:22 +0100 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2009-03-08 19:58:22 +0100 |
commit | 8bd09112812f1f0579b9c95e819540d2c6be6e4d (patch) | |
tree | 0a1d2dd12877d7465dbfef0f5738c852315d682e /libqpdf/Pl_LZWDecoder.cc | |
parent | 3a7cab47404cfe8b72c9d88ae843e9dbe7a6a1d1 (diff) | |
download | qpdf-8bd09112812f1f0579b9c95e819540d2c6be6e4d.tar.zst |
push boundary of table full error out one more code -- seems
consistent with other implementations and is required for one PDF file
in the test suite
git-svn-id: svn+q:///qpdf/trunk@656 71b93d88-0707-0410-a8cf-f5a4172ac649
Diffstat (limited to 'libqpdf/Pl_LZWDecoder.cc')
-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"); } |