mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-06-11 15:19:19 +02:00
tests: Don't limit fuzzing inputs to 1 MB for afl-fuzz (now: ∞ ∀ fuzzers)
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user