Commit 5f8825b1 authored by Chris Palmer's avatar Chris Palmer Committed by Commit Bot

[inspector_protocol] Limit the size of fuzzy inputs in the correct way.

Bug: None
TBR: alph
Change-Id: I01d1abdc44cde63278512651372a05a6c2778749
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1611726
Commit-Queue: Chris Palmer <palmer@chromium.org>
Reviewed-by: default avatarMax Moroz <mmoroz@chromium.org>
Cr-Commit-Position: refs/heads/master@{#660038}
parent 5428bd4c
......@@ -14,6 +14,10 @@
extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
using namespace inspector_protocol_encoding;
if (size > 64 * 1024) {
return 0;
}
span<uint8_t> fuzz{data, size};
// We need to handle whatever the parser parses. So, we handle the parsed
......
......@@ -147,7 +147,6 @@ fuzzer_test("inspector_fuzzer") {
"//third_party/inspector_protocol:encoding",
]
seed_corpus = "//components/cbor/reader_fuzzer_corpus/"
libfuzzer_options = [ "max_len=65535" ]
}
fuzzer_test("http_structured_header_fuzzer") {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment