From 6a239e72eb403d3ac5c7db203c5b3a24ef49a48b Mon Sep 17 00:00:00 2001 From: practicalswift Date: Fri, 22 May 2020 15:15:24 +0000 Subject: [PATCH] =?UTF-8?q?tests:=20Don't=20limit=20fuzzing=20inputs=20to?= =?UTF-8?q?=201=20MB=20for=20afl-fuzz=20(now:=20=E2=88=9E=20=E2=88=80=20fu?= =?UTF-8?q?zzers)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/test/fuzz/fuzz.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/test/fuzz/fuzz.cpp b/src/test/fuzz/fuzz.cpp index 6e2188fe86..82e1d55c0b 100644 --- a/src/test/fuzz/fuzz.cpp +++ b/src/test/fuzz/fuzz.cpp @@ -19,8 +19,6 @@ static bool read_stdin(std::vector& 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; }