diff options
author | Robert Swiecki <robert@swiecki.net> | 2016-11-22 21:31:40 +0100 |
---|---|---|
committer | Robert Swiecki <robert@swiecki.net> | 2016-11-22 21:31:40 +0100 |
commit | a81f317780cf1581dba9e63d38caf3715365f503 (patch) | |
tree | 8962bc856333ff16c0d29727bc382826660dd23f /files.c | |
parent | 92ec8d2d338e6917bdfb9ced239a54aba2f6c59f (diff) | |
download | honggfuzz-a81f317780cf1581dba9e63d38caf3715365f503.tar.gz |
Minimal undefined file size is 128 bytes
Diffstat (limited to 'files.c')
-rw-r--r-- | files.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -211,7 +211,11 @@ static bool files_readdir(honggfuzz_t * hfuzz) } if (hfuzz->maxFileSz == 0UL) { - hfuzz->maxFileSz = maxSize; + if (maxSize < 128U) { + hfuzz->maxFileSz = 128U; + } else { + hfuzz->maxFileSz = maxSize; + } } LOG_I("%zu input files have been added to the list. Max file size: %zu", hfuzz->fileCnt, hfuzz->maxFileSz); |