mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-07-19 22:01:45 +08:00
Fix bug 70563
This commit is contained in:
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user