Package: poppler / 0.71.0-5

CVE-2019-9200.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
From f4136a6353162db249f63ddb0f20611622ab61b4 Mon Sep 17 00:00:00 2001
From: Albert Astals Cid <aacid@kde.org>
Date: Wed, 27 Feb 2019 19:43:22 +0100
Subject: [PATCH] ImageStream::getLine: fix crash on broken files

Fixes #728
---
 poppler/Stream.cc | 3 +++
 1 file changed, 3 insertions(+)

diff -aur poppler-0.71.0.orig/poppler/Stream.cc poppler-0.71.0/poppler/Stream.cc
--- poppler-0.71.0.orig/poppler/Stream.cc	2018-10-31 22:13:17.000000000 +0100
+++ poppler-0.71.0/poppler/Stream.cc	2019-05-10 18:04:55.809263964 +0200
@@ -476,6 +476,9 @@
   }
  
   int readChars = str->doGetChars(inputLineSize, inputLine);
+  if (unlikely(readChars == -1)) {
+      readChars = 0;
+  }
   for ( ; readChars < inputLineSize; readChars++) inputLine[readChars] = EOF;
   if (nBits == 1) {
     Guchar *p = inputLine;