Fix bug 70563

This commit is contained in:
Svetlana Kulikova
2024-10-03 13:00:18 +03:00
parent cb7edc373c
commit 84016cf8cf

View File

@ -1440,7 +1440,7 @@ GBool LZWStream::processNextCode() {
totalOut += seqLength;
// check for a 'decompression bomb'
if (totalOut > 50000000 && totalIn < totalOut / 250) {
if (totalOut > 500000000 && totalIn < totalOut / 250) {
error(errSyntaxError, getPos(), "Decompression bomb in flate stream");
eof = gTrue;
return gFalse;
@ -5252,7 +5252,7 @@ void FlateStream::readSome() {
totalOut += remain;
// check for a 'decompression bomb'
if (totalOut > 100000000 && totalIn < totalOut / 250) {
if (totalOut > 500000000 && totalIn < totalOut / 250) {
error(errSyntaxError, getPos(), "Decompression bomb in flate stream");
endOfBlock = eof = gTrue;
remain = 0;