Commit aa92e1ddb2bc18b45f9d2a09235beaa9da9ac006

Authored by Jay Berkenbilt
1 parent 2af08ee3

fix table full check again


git-svn-id: svn+q:///qpdf/trunk@662 71b93d88-0707-0410-a8cf-f5a4172ac649
Showing 1 changed file with 1 additions and 1 deletions
libqpdf/Pl_LZWDecoder.cc
@@ -199,7 +199,7 @@ Pl_LZWDecoder::handleCode(int code) @@ -199,7 +199,7 @@ Pl_LZWDecoder::handleCode(int code)
199 } 199 }
200 } 200 }
201 unsigned int last_idx = 258 + table_size; 201 unsigned int last_idx = 258 + table_size;
202 - if (last_idx + code_change_delta == 4097) 202 + if (last_idx == 4096)
203 { 203 {
204 throw QEXC::General("LZWDecoder: table full"); 204 throw QEXC::General("LZWDecoder: table full");
205 } 205 }