File poppler-CVE-2018-20650.patch of Package poppler.30207

Index: poppler-0.43.0/poppler/FileSpec.cc
===================================================================
--- poppler-0.43.0.orig/poppler/FileSpec.cc
+++ poppler-0.43.0/poppler/FileSpec.cc
@@ -137,11 +137,11 @@ FileSpec::FileSpec(Object *fileSpecA)
       }
     }
     obj1.free();
-  }
 
-  if (fileSpec.dictLookup("Desc", &obj1)->isString())
-    desc = obj1.getString()->copy();
-  obj1.free();
+    if (fileSpec.dictLookup("Desc", &obj1)->isString())
+      desc = obj1.getString()->copy();
+    obj1.free();
+  }
 }
 
 FileSpec::~FileSpec()
openSUSE Build Service is sponsored by