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:
Jay Berkenbilt 2009-03-08 18:58:22 +00:00
parent 3a7cab4740
commit 8bd0911281
1 changed files with 1 additions and 1 deletions

View File

@ -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");
}