Skip to content
Permalink
Browse files

Fix various bugs found by OSS-Fuze.

  • Loading branch information
kevina committed Aug 4, 2019
1 parent 00f937e commit 80fa26c74279fced8d778351cff19d1d8f44fe4e
Showing with 3 additions and 2 deletions.
  1. +1 −1 common/config.cpp
  2. +1 −0 common/file_util.cpp
  3. +1 −1 common/getdata.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
@@ -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;
@@ -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;

0 comments on commit 80fa26c

Please sign in to comment.
You can’t perform that action at this time.