diff options
author | Andreas Kling <kling@serenityos.org> | 2020-12-19 17:38:33 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-12-19 18:29:13 +0100 |
commit | 48d74c53565f6bd87e70430ea5b0bc7e6dedb957 (patch) | |
tree | f144a49e40fdc65f7056dc56417c347628dcb51c /Meta/Lagom/Fuzzers | |
parent | e517505e35997d3e707b2332be57c5662b330674 (diff) | |
download | serenity-48d74c53565f6bd87e70430ea5b0bc7e6dedb957.zip |
LibHTTP: Make HTTPRequest::from_raw_request() take a ReadonlyBytes
This allows us to get rid of some ByteBuffer::wrap() usage.
Diffstat (limited to 'Meta/Lagom/Fuzzers')
-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 7eb4fb5ac5..78620d8cdb 100644 --- a/Meta/Lagom/Fuzzers/FuzzHttpRequest.cpp +++ b/Meta/Lagom/Fuzzers/FuzzHttpRequest.cpp @@ -30,7 +30,7 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) { - auto request_wrapper = HTTP::HttpRequest::from_raw_request(ByteBuffer::wrap(const_cast<u8*>(data), size)); + auto request_wrapper = HTTP::HttpRequest::from_raw_request(ReadonlyBytes { data, size }); if (!request_wrapper.has_value()) return 1; |