File CVE-2017-14517.patch of Package poppler.31743

From 476394e7a025e02e4897da2e765df2c895d0708f Mon Sep 17 00:00:00 2001
From: Albert Astals Cid <aacid@kde.org>
Date: Wed, 13 Sep 2017 22:58:14 +0200
Subject: [PATCH] XRef::parseEntry: Fix crash in broken file

Bug #102687
---
 poppler/XRef.cc | 3 +++
 1 file changed, 3 insertions(+)

Index: poppler-0.43.0/poppler/XRef.cc
===================================================================
--- poppler-0.43.0.orig/poppler/XRef.cc	2017-10-09 12:20:43.219355111 +0000
+++ poppler-0.43.0/poppler/XRef.cc	2017-10-09 12:22:19.348843019 +0000
@@ -1551,6 +1551,9 @@ GBool XRef::parseEntry(Goffset offset, X
 {
   GBool r;
 
+  if (unlikely(entry == (void *)0))
+    return gFalse;
+
   Object obj;
   obj.initNull();
   Parser parser = Parser(NULL, new Lexer(NULL,
openSUSE Build Service is sponsored by