Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
No build reason found for pool-leap-15.5:x86_64
SUSE:SLE-12-SP4:GA
poppler
poppler-CVE-2018-19059.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File poppler-CVE-2018-19059.patch of Package poppler
From 77a30e94d96220d7e22dff5b3f0a7f296f01b118 Mon Sep 17 00:00:00 2001 From: Adam Reichold <adam.reichold@t-online.de> Date: Tue, 6 Nov 2018 09:13:41 +0100 Subject: [PATCH] pdfdetach: Check for valid embedded file before trying to save it. Closes #661 --- utils/pdfdetach.cc | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) Index: poppler-0.43.0/utils/pdfdetach.cc =================================================================== --- poppler-0.43.0.orig/utils/pdfdetach.cc +++ poppler-0.43.0/utils/pdfdetach.cc @@ -255,7 +255,12 @@ int main(int argc, char *argv[]) { } *p = '\0'; - if (!fileSpec->getEmbeddedFile()->save(path)) { + EmbFile *embFile = fileSpec->getEmbeddedFile(); + if (!embFile || !embFile->isOk()) { + exitCode = 3; + goto err2; + } + if (!embFile->save(path)) { error(errIO, -1, "Error saving embedded file as '{0:s}'", p); exitCode = 2; goto err2; @@ -304,7 +309,12 @@ int main(int argc, char *argv[]) { p = path; } - if (!fileSpec->getEmbeddedFile()->save(p)) { + EmbFile *embFile = fileSpec->getEmbeddedFile(); + if (!embFile || !embFile->isOk()) { + exitCode = 3; + goto err2; + } + if (!embFile->save(p)) { error(errIO, -1, "Error saving embedded file as '{0:s}'", p); exitCode = 2; goto err2;
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor