mirror of https://github.com/qpdf/qpdf.git
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
This commit is contained in:
parent
3a7cab4740
commit
8bd0911281
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue