Commit 087cc347 authored by Max Moroz's avatar Max Moroz Committed by Commit Bot

[fuzzer] Fix timeout in v8_script_parser_fuzzer due to unnecessary long inputs.

Bug: Chromium:841975
Change-Id: Ife77805fa3977dc874087ca7ae810eded2ae1c55
Reviewed-on: https://chromium-review.googlesource.com/1136986Reviewed-by: 's avatarMarja Hölttä <marja@chromium.org>
Commit-Queue: Max Moroz <mmoroz@chromium.org>
Cr-Commit-Position: refs/heads/master@{#54468}
parent 941d5f96
......@@ -18,6 +18,11 @@
#include "test/fuzzer/fuzzer-support.h"
bool IsValidInput(const uint8_t* data, size_t size) {
// Ignore too long inputs as they tend to find OOM or timeouts, not real bugs.
if (size > 8192) {
return false;
}
std::list<char> parentheses;
const char* ptr = reinterpret_cast<const char*>(data);
......
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