Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.0:Ports
podofo
0005-Fix-for-CVE-2017-5886.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0005-Fix-for-CVE-2017-5886.patch of Package podofo
Subject: Fix for CVE-2017-5886 Url: https://sourceforge.net/p/podofo/code/1837/ --- a/podofo/trunk/src/base/PdfTokenizer.cpp +++ b/podofo/trunk/src/base/PdfTokenizer.cpp @@ -239,7 +239,7 @@ *peType = ePdfTokenType_Token; while( (c = m_device.Device()->Look()) != EOF - && counter < static_cast<pdf_int64>(m_buffer.GetSize()) ) + && counter + 1 < static_cast<pdf_int64>(m_buffer.GetSize()) ) { // ignore leading whitespaces if( !counter && IsWhitespace( c ) ) @@ -317,7 +317,6 @@ } m_buffer.GetBuffer()[counter] = '\0'; - if( c == EOF && !counter ) {
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