Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-15-SP4:Update
python-wxPython.35301
CVE-2024-50602-no-crash-XML_ResumeParser.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File CVE-2024-50602-no-crash-XML_ResumeParser.patch of Package python-wxPython.35301
--- ext/wxWidgets/src/expat/expat/lib/expat.h | 4 +++- ext/wxWidgets/src/expat/expat/lib/xmlparse.c | 11 ++++++++++- 2 files changed, 13 insertions(+), 2 deletions(-) --- a/ext/wxWidgets/src/expat/expat/lib/expat.h +++ b/ext/wxWidgets/src/expat/expat/lib/expat.h @@ -115,7 +115,9 @@ enum XML_Error { XML_ERROR_RESERVED_PREFIX_XMLNS, XML_ERROR_RESERVED_NAMESPACE_URI, /* Added in 2.2.1. */ - XML_ERROR_INVALID_ARGUMENT + XML_ERROR_INVALID_ARGUMENT, + /* Added in 2.6.4. */ + XML_ERROR_NOT_STARTED, }; enum XML_Content_Type { --- a/ext/wxWidgets/src/expat/expat/lib/xmlparse.c +++ b/ext/wxWidgets/src/expat/expat/lib/xmlparse.c @@ -2075,6 +2075,9 @@ XML_StopParser(XML_Parser parser, XML_Bo if (parser == NULL) return XML_STATUS_ERROR; switch (parser->m_parsingStatus.parsing) { + case XML_INITIALIZED: + parser->m_errorCode = XML_ERROR_NOT_STARTED; + return XML_STATUS_ERROR; case XML_SUSPENDED: if (resumable) { parser->m_errorCode = XML_ERROR_SUSPENDED; @@ -2085,7 +2088,7 @@ XML_StopParser(XML_Parser parser, XML_Bo case XML_FINISHED: parser->m_errorCode = XML_ERROR_FINISHED; return XML_STATUS_ERROR; - default: + case XML_PARSING: if (resumable) { #ifdef XML_DTD if (parser->m_isParamEntity) { @@ -2096,6 +2099,9 @@ XML_StopParser(XML_Parser parser, XML_Bo parser->m_parsingStatus.parsing = XML_SUSPENDED; } else parser->m_parsingStatus.parsing = XML_FINISHED; + break; + default: + assert(0); } return XML_STATUS_OK; } @@ -2353,6 +2359,9 @@ XML_ErrorString(enum XML_Error code) { case XML_ERROR_INVALID_ARGUMENT: /* Constant added in 2.2.1, already */ return XML_L("invalid argument"); } + /* Added in 2.6.4. */ + case XML_ERROR_NOT_STARTED: + return XML_L("parser not started"); return NULL; }
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