diff options
Diffstat (limited to 'main/poppler/CVE-2019-9959.patch')
-rw-r--r-- | main/poppler/CVE-2019-9959.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/main/poppler/CVE-2019-9959.patch b/main/poppler/CVE-2019-9959.patch new file mode 100644 index 00000000000..d417a698b2b --- /dev/null +++ b/main/poppler/CVE-2019-9959.patch @@ -0,0 +1,13 @@ +diff --git a/poppler/JPEG2000Stream.cc b/poppler/JPEG2000Stream.cc +index 7daa23d..714d814 100644 +--- a/poppler/JPEG2000Stream.cc ++++ b/poppler/JPEG2000Stream.cc +@@ -368,7 +368,7 @@ void JPXStream::init() + if (getDict()) getDict()->lookup("SMaskInData", &smaskInData); + + int bufSize = BUFFER_INITIAL_SIZE; +- if (oLen.isInt()) bufSize = oLen.getInt(); ++ if (oLen.isInt() && oLen.getInt() > 0) bufSize = oLen.getInt(); + oLen.free(); + + if (cspace.isArray() && cspace.arrayGetLength() > 0) { |