Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12:Update
aspell
aspell-CVE-2019-17544.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File aspell-CVE-2019-17544.patch of Package aspell
diff --git a/common/config.cpp b/common/config.cpp index 017e741..e117d3c 100644 --- a/common/config.cpp +++ b/common/config.cpp @@ -763,7 +763,7 @@ namespace acommon { } res.append(':'); } - if (res.back() == ':') res.pop_back(); + if (!res.empty() && res.back() == ':') res.pop_back(); } struct ListAddHelper : public AddableContainer diff --git a/common/file_util.cpp b/common/file_util.cpp index 8515832..56ea501 100644 --- a/common/file_util.cpp +++ b/common/file_util.cpp @@ -181,6 +181,7 @@ namespace acommon { while ( (dir = els.next()) != 0 ) { path = dir; + if (path.empty()) continue; if (path.back() != '/') path += '/'; unsigned dir_len = path.size(); path += filename; diff --git a/common/getdata.cpp b/common/getdata.cpp index 7e822c9..1b04823 100644 --- a/common/getdata.cpp +++ b/common/getdata.cpp @@ -64,7 +64,7 @@ namespace acommon { char * unescape(char * dest, const char * src) { while (*src) { - if (*src == '\\') { + if (*src == '\\' && src[1]) { ++src; switch (*src) { case 'n': *dest = '\n'; break;
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