summaryrefslogtreecommitdiff
path: root/Meta
diff options
context:
space:
mode:
authorimplicitfield <114500360+implicitfield@users.noreply.github.com>2023-05-23 22:06:47 +0400
committerJelle Raaijmakers <jelle@gmta.nl>2023-05-24 16:25:13 +0200
commitb6af5eaa72c671dd4136c0c9f9e2a3b6996b1434 (patch)
treea424427d6c421156254901efa525e27d2b8c1e81 /Meta
parent703bd4c8a3e18dfb194017f48252d4497e753a08 (diff)
downloadserenity-b6af5eaa72c671dd4136c0c9f9e2a3b6996b1434.zip
Fuzzers: Unbreak FuzzHttpRequest
Previously, the exit condition was inverted, causing the fuzzer to try to read the value of an error.
Diffstat (limited to 'Meta')
-rw-r--r--Meta/Lagom/Fuzzers/FuzzHttpRequest.cpp2
1 files changed, 1 insertions, 1 deletions
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();