aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/Pl_LZWDecoder.cc
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2009-03-09 16:16:19 +0100
committerJay Berkenbilt <ejb@ql.org>2009-03-09 16:16:19 +0100
commitaa92e1ddb2bc18b45f9d2a09235beaa9da9ac006 (patch)
tree480ee8c1f117cf32b9301185b5852bf59ce206b0 /libqpdf/Pl_LZWDecoder.cc
parent2af08ee3984d2f5f2ea3432572bcb631e3085b7e (diff)
downloadqpdf-aa92e1ddb2bc18b45f9d2a09235beaa9da9ac006.tar.zst
fix table full check again
git-svn-id: svn+q:///qpdf/trunk@662 71b93d88-0707-0410-a8cf-f5a4172ac649
Diffstat (limited to 'libqpdf/Pl_LZWDecoder.cc')
-rw-r--r--libqpdf/Pl_LZWDecoder.cc2
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");
}