commit | 0a01ea792cd09caf0dfea7afec70906fdc10e30a | [log] [tgz] |
---|---|---|
author | Robert Swiecki <robert@swiecki.net> | Thu Jan 11 01:50:18 2018 +0100 |
committer | Robert Swiecki <robert@swiecki.net> | Thu Jan 11 01:50:18 2018 +0100 |
tree | cf9a8a8102d3b661fffc630e027d34e0b6c06906 | |
parent | f4cbd8ba63b9962347dac00da56d601b6c88ffe4 [diff] [blame] |
Remove notion of the inputFile, in favor of input file-descriptors accessible as /dev/fd/<x>
diff --git a/cmdline.c b/cmdline.c index 2a9c12e..1b6c823 100644 --- a/cmdline.c +++ b/cmdline.c
@@ -206,6 +206,12 @@ return false; } + if (hfuzz->maxFileSz > _HF_INPUT_MAX_SIZE) { + LOG_E("Maximum file size '%zu' bigger than the maximum size '%zu'", hfuzz->maxFileSz, + (size_t)_HF_INPUT_MAX_SIZE); + return false; + } + return true; }