Commit 5f91c63b authored by Clemens Backes's avatar Clemens Backes Committed by Commit Bot

[libfuzzer][v8][inspector] Restrict alphabet to ascii

This is an optimization to increase efficiency of libfuzzer (by avoiding
inputs which are unlikely to be valid JS).
It's OK if other fuzzing engines still pass non-ascii input.

R=mmoroz@chromium.org
CC=ahaas@chromium.org

Bug: chromium:1142437
Change-Id: If4560b7a8c04a044835464462893caf8549f0615
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2518857Reviewed-by: default avatarAndreas Haas <ahaas@chromium.org>
Reviewed-by: default avatarMax Moroz <mmoroz@chromium.org>
Commit-Queue: Clemens Backes <clemensb@chromium.org>
Cr-Commit-Position: refs/heads/master@{#824350}
parent ee94261d
......@@ -151,6 +151,10 @@ fuzzer_test("v8_inspector_fuzzer") {
]
dict = "dicts/generated/javascript.dict"
seed_corpus = "//v8/test/inspector/"
# The fuzzer is able to handle any input, but since the input is interpreted
# as JS code, restricting to ascii only will increase fuzzing efficiency.
libfuzzer_options = [ "only_ascii=1" ]
environment_variables = [ "AFL_DRIVER_DONT_DEFER=1" ]
}
......
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