From 84016cf8cf22a440b72ea4e9a0e524dfdce92629 Mon Sep 17 00:00:00 2001 From: Svetlana Kulikova Date: Thu, 3 Oct 2024 13:00:18 +0300 Subject: [PATCH] Fix bug 70563 --- PdfFile/lib/xpdf/Stream.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PdfFile/lib/xpdf/Stream.cc b/PdfFile/lib/xpdf/Stream.cc index 5a7b0eefd0..8119de4f75 100644 --- a/PdfFile/lib/xpdf/Stream.cc +++ b/PdfFile/lib/xpdf/Stream.cc @@ -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;