aboutsummaryrefslogtreecommitdiff
path: root/src/test/fuzz/fuzz.cpp
diff options
context:
space:
mode:
authorpracticalswift <[email protected]>2020-05-22 15:15:24 +0000
committerpracticalswift <[email protected]>2020-05-22 15:15:46 +0000
commit6a239e72eb403d3ac5c7db203c5b3a24ef49a48b (patch)
treefdcd20c66f4014286b52bf860e919b37124bf404 /src/test/fuzz/fuzz.cpp
parentMerge #19014: test: Replace TEST_PREVIOUS_RELEASES env var with test_framewor... (diff)
downloaddiscoin-6a239e72eb403d3ac5c7db203c5b3a24ef49a48b.tar.xz
discoin-6a239e72eb403d3ac5c7db203c5b3a24ef49a48b.zip
tests: Don't limit fuzzing inputs to 1 MB for afl-fuzz (now: ∞ ∀ fuzzers)
Diffstat (limited to 'src/test/fuzz/fuzz.cpp')
-rw-r--r--src/test/fuzz/fuzz.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/test/fuzz/fuzz.cpp b/src/test/fuzz/fuzz.cpp
index 6e2188fe8..82e1d55c0 100644
--- a/src/test/fuzz/fuzz.cpp
+++ b/src/test/fuzz/fuzz.cpp
@@ -19,8 +19,6 @@ static bool read_stdin(std::vector<uint8_t>& data)
ssize_t length = 0;
while ((length = read(STDIN_FILENO, buffer, 1024)) > 0) {
data.insert(data.end(), buffer, buffer + length);
-
- if (data.size() > (1 << 20)) return false;
}
return length == 0;
}