diff options
author | Jagger <robert@swiecki.net> | 2016-07-21 22:49:54 +0200 |
---|---|---|
committer | Jagger <robert@swiecki.net> | 2016-07-21 22:49:54 +0200 |
commit | f49962d0c846a94fd446e679fbf18247b9efe92d (patch) | |
tree | e2b89a630f5fae4cc11b5d1b896335bcd4ebbfda /files.c | |
parent | 6edaf4a5ea6a8e8a5cdc0c4b7ecdd5f09b291c4e (diff) | |
download | honggfuzz-f49962d0c846a94fd446e679fbf18247b9efe92d.tar.gz |
Introduce util_Realloc
Diffstat (limited to 'files.c')
-rw-r--r-- | files.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -197,7 +197,7 @@ static bool files_readdir(honggfuzz_t * hfuzz) continue; } - if (!(hfuzz->files = realloc(hfuzz->files, sizeof(char *) * (count + 1)))) { + if (!(hfuzz->files = util_Realloc(hfuzz->files, sizeof(char *) * (count + 1)))) { PLOG_E("Couldn't allocate memory"); return false; } @@ -279,8 +279,8 @@ bool files_parseDictionary(honggfuzz_t * hfuzz) break; } if ((hfuzz->dictionary = - realloc(hfuzz->dictionary, - (hfuzz->dictionaryCnt + 1) * sizeof(hfuzz->dictionary[0]))) == NULL) { + util_Realloc(hfuzz->dictionary, + (hfuzz->dictionaryCnt + 1) * sizeof(hfuzz->dictionary[0]))) == NULL) { PLOG_E("Realloc failed (sz=%zu)", (hfuzz->dictionaryCnt + 1) * sizeof(hfuzz->dictionary[0])); return false; @@ -404,8 +404,8 @@ bool files_parseBlacklist(honggfuzz_t * hfuzz) } if ((hfuzz->blacklist = - realloc(hfuzz->blacklist, - (hfuzz->blacklistCnt + 1) * sizeof(hfuzz->blacklist[0]))) == NULL) { + util_Realloc(hfuzz->blacklist, + (hfuzz->blacklistCnt + 1) * sizeof(hfuzz->blacklist[0]))) == NULL) { PLOG_E("realloc failed (sz=%zu)", (hfuzz->blacklistCnt + 1) * sizeof(hfuzz->blacklist[0])); return false; |