diff options
author | Robert Swiecki <robert@swiecki.net> | 2017-12-21 04:07:11 +0100 |
---|---|---|
committer | Robert Swiecki <robert@swiecki.net> | 2017-12-21 04:07:11 +0100 |
commit | 3f8e9fd3acf8883a2cf76a8971cd2ecc21919d67 (patch) | |
tree | 3a4fa9e5f27f86b72a78daddb3c035ff3d44dde9 /input.c | |
parent | 6088be4120d7be84d70ed18ee879f31532b9776d (diff) | |
download | honggfuzz-3f8e9fd3acf8883a2cf76a8971cd2ecc21919d67.tar.gz |
mangle: allow 0-lenght inputs
Diffstat (limited to 'input.c')
-rw-r--r-- | input.c | 8 |
1 files changed, 0 insertions, 8 deletions
@@ -86,10 +86,6 @@ static bool input_getDirStatsAndRewind(honggfuzz_t* hfuzz) { LOG_W("File '%s' is bigger than maximal defined file size (-F): %" PRId64 " > %" PRId64, fname, (int64_t)st.st_size, (int64_t)hfuzz->maxFileSz); } - if (st.st_size == 0U) { - LOG_W("File '%s' is empty", fname); - continue; - } if ((size_t)st.st_size > maxSize) { maxSize = st.st_size; } @@ -162,10 +158,6 @@ bool input_getNext(run_t* run, char* fname, bool rewind) { LOG_D("'%s' is not a regular file, skipping", fname); continue; } - if (st.st_size == 0U) { - LOG_D("File '%s' is empty", fname); - continue; - } return true; } } |