Replace ConsumeBytesInRange with ConsumeRandomLengthString in fuzzed_data_provider
This CL changes the Blink wrapper for fuzzed_data_provider for callers wanting a random length string. This uses a much simpler technique for pulling strings out of random data which should yield better fuzzing discovery. Note: This will change the behavior of the (two) fuzzers using ConsumeBytesInRange. Additionally, we add a small max limit to the tokenizer fuzzer to avoid hangs. I couldn't find anything wrong with the production code to cause these hangs. Bug: 813761 Change-Id: I30b3be16b6c101165fdd3041596a82412e5c46f1 Reviewed-on: https://chromium-review.googlesource.com/c/1354413Reviewed-by:Kentaro Hara <haraken@chromium.org> Reviewed-by:
Max Moroz <mmoroz@chromium.org> Commit-Queue: Max Moroz <mmoroz@chromium.org> Cr-Commit-Position: refs/heads/master@{#612654}
Showing
Please register or sign in to comment