2
1
mirror of https://github.com/qpdf/qpdf.git synced 2024-05-28 07:53:11 +00:00

fix table full check again

git-svn-id: svn+q:///qpdf/trunk@662 71b93d88-0707-0410-a8cf-f5a4172ac649
This commit is contained in:
Jay Berkenbilt 2009-03-09 15:16:19 +00:00
parent 2af08ee398
commit aa92e1ddb2

View File

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