Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP2:Update
poppler.30207
poppler-CVE-2018-16646.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File poppler-CVE-2018-16646.patch of Package poppler.30207
Index: poppler-0.43.0/poppler/Parser.cc =================================================================== --- poppler-0.43.0.orig/poppler/Parser.cc +++ poppler-0.43.0/poppler/Parser.cc @@ -202,6 +202,18 @@ Stream *Parser::makeStream(Object *dict, Stream *str; Goffset length; Goffset pos, endPos; + XRefEntry *entry; + + if (xref && (entry = xref->getEntry(objNum, false))) { + if (!entry->getFlag(XRefEntry::Parsing) || + (objNum == 0 && objGen == 0)) { + entry->setFlag(XRefEntry::Parsing, true); + } else { + error(errSyntaxError, getPos(), + "Object '{0:d} {1:d} obj' is being already parsed", objNum, objGen); + return NULL; + } + } // get stream start position lexer->skipToNextLine(); @@ -281,6 +293,9 @@ Stream *Parser::makeStream(Object *dict, // get filters str = str->addFilters(dict, recursion); + if (entry) + entry->setFlag(XRefEntry::Parsing, false); + return str; } Index: poppler-0.43.0/poppler/XRef.h =================================================================== --- poppler-0.43.0.orig/poppler/XRef.h +++ poppler-0.43.0/poppler/XRef.h @@ -69,6 +69,7 @@ struct XRefEntry { enum Flag { // Regular flags Updated, // Entry was modified + Parsing, // Entry is currently being parsed // Special flags -- available only after xref->scanSpecialFlags() is run Unencrypted, // Entry is stored in unencrypted form (meaningless in unencrypted documents)
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