mirror of
https://github.com/qpdf/qpdf.git
synced 2025-01-23 07:08:30 +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:
parent
2af08ee398
commit
aa92e1ddb2
@ -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");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user