mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-14 05:22:24 +00:00
Fuzzers: Unbreak FuzzHttpRequest
Previously, the exit condition was inverted, causing the fuzzer to try to read the value of an error.
This commit is contained in:
parent
703bd4c8a3
commit
b6af5eaa72
Notes:
sideshowbarker
2024-07-17 01:11:48 +09:00
Author: https://github.com/implicitfield
Commit: b6af5eaa72
Pull-request: https://github.com/SerenityOS/serenity/pull/19005
Reviewed-by: https://github.com/gmta ✅
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@
|
||||||
extern "C" int LLVMFuzzerTestOneInput(uint8_t const* data, size_t size)
|
extern "C" int LLVMFuzzerTestOneInput(uint8_t const* data, size_t size)
|
||||||
{
|
{
|
||||||
auto request_wrapper = HTTP::HttpRequest::from_raw_request(ReadonlyBytes { data, size });
|
auto request_wrapper = HTTP::HttpRequest::from_raw_request(ReadonlyBytes { data, size });
|
||||||
if (!request_wrapper.is_error())
|
if (request_wrapper.is_error())
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
auto& request = request_wrapper.value();
|
auto& request = request_wrapper.value();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue