diff options
author | Aliaksandr Kalenik <kalenik.aliaksandr@gmail.com> | 2023-03-23 02:52:06 +0300 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2023-03-26 17:56:17 +0200 |
commit | 9220cdc285db3ac68cdef58d8beb15a0171c54c9 (patch) | |
tree | cd19895d6fdd1b0f20bcc0be28b66009186e0ecc /Meta | |
parent | 5b31d1208f7d0622a8fd57024568368286bf8372 (diff) | |
download | serenity-9220cdc285db3ac68cdef58d8beb15a0171c54c9.zip |
LibHTTP+WebDriver+WebServer: Return error from HTTP request parser
Diffstat (limited to 'Meta')
-rw-r--r-- | Meta/Lagom/Fuzzers/FuzzHttpRequest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Meta/Lagom/Fuzzers/FuzzHttpRequest.cpp b/Meta/Lagom/Fuzzers/FuzzHttpRequest.cpp index 5800767379..6f85a08131 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.has_value()) + if (!request_wrapper.is_error()) return 0; auto& request = request_wrapper.value(); |