mirror of
https://github.com/qpdf/qpdf.git
synced 2025-02-02 20:08:24 +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;
|
unsigned int last_idx = 258 + table_size;
|
||||||
if (last_idx + code_change_delta == 4097)
|
if (last_idx == 4096)
|
||||||
{
|
{
|
||||||
throw QEXC::General("LZWDecoder: table full");
|
throw QEXC::General("LZWDecoder: table full");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user