diff options
author | Jay Berkenbilt <ejb@ql.org> | 2009-02-20 03:27:36 +0100 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2009-02-20 03:27:36 +0100 |
commit | da7166bead13d09ad29f68ad64da5500c82d9be1 (patch) | |
tree | 8085419efe73273f6bfeef24103ceaea62b54fb4 /libqpdf/Pl_LZWDecoder.cc | |
parent | 9f93c89ee59b2ebc04a15a9f24cdaf9f513a28c1 (diff) | |
download | qpdf-da7166bead13d09ad29f68ad64da5500c82d9be1.tar.zst |
fix problem with lzw decoder when run without early code change, now that we actually have test input
git-svn-id: svn+q:///qpdf/trunk@646 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 e85531e9..95dcec37 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 == 4095) + if (last_idx + code_change_delta == 4096) { throw QEXC::General("LZWDecoder: table full"); } |