From b6af5eaa72c671dd4136c0c9f9e2a3b6996b1434 Mon Sep 17 00:00:00 2001 From: implicitfield <114500360+implicitfield@users.noreply.github.com> Date: Tue, 23 May 2023 22:06:47 +0400 Subject: [PATCH] Fuzzers: Unbreak FuzzHttpRequest Previously, the exit condition was inverted, causing the fuzzer to try to read the value of an error. --- Meta/Lagom/Fuzzers/FuzzHttpRequest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Meta/Lagom/Fuzzers/FuzzHttpRequest.cpp b/Meta/Lagom/Fuzzers/FuzzHttpRequest.cpp index 6f85a08131..db74f350bd 100644 --- a/Meta/Lagom/Fuzzers/FuzzHttpRequest.cpp +++ b/Meta/Lagom/Fuzzers/FuzzHttpRequest.cpp @@ -11,7 +11,7 @@ extern "C" int LLVMFuzzerTestOneInput(uint8_t const* data, size_t size) { auto request_wrapper = HTTP::HttpRequest::from_raw_request(ReadonlyBytes { data, size }); - if (!request_wrapper.is_error()) + if (request_wrapper.is_error()) return 0; auto& request = request_wrapper.value();