summaryrefslogtreecommitdiff
path: root/input.c
diff options
context:
space:
mode:
authorRobert Swiecki <robert@swiecki.net>2017-12-21 04:07:11 +0100
committerRobert Swiecki <robert@swiecki.net>2017-12-21 04:07:11 +0100
commit3f8e9fd3acf8883a2cf76a8971cd2ecc21919d67 (patch)
tree3a4fa9e5f27f86b72a78daddb3c035ff3d44dde9 /input.c
parent6088be4120d7be84d70ed18ee879f31532b9776d (diff)
downloadhonggfuzz-3f8e9fd3acf8883a2cf76a8971cd2ecc21919d67.tar.gz
mangle: allow 0-lenght inputs
Diffstat (limited to 'input.c')
-rw-r--r--input.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/input.c b/input.c
index db1976d9..60949772 100644
--- a/input.c
+++ b/input.c
@@ -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;
}
}