tests: Don't limit fuzzing inputs to 1 MB for afl-fuzz (now: ∞ ∀ fuzzers)

pull/19052/head
practicalswift 5 years ago
parent b5c423c48e
commit 6a239e72eb

@ -19,8 +19,6 @@ static bool read_stdin(std::vector<uint8_t>& data)
ssize_t length = 0; ssize_t length = 0;
while ((length = read(STDIN_FILENO, buffer, 1024)) > 0) { while ((length = read(STDIN_FILENO, buffer, 1024)) > 0) {
data.insert(data.end(), buffer, buffer + length); data.insert(data.end(), buffer, buffer + length);
if (data.size() > (1 << 20)) return false;
} }
return length == 0; return length == 0;
} }

Loading…
Cancel
Save