dawn-cmake/fuzzers/tint_regex_fuzzer
Alastair Donaldson 0118b964f3 Fix generation of random indices in regex fuzzer
Random indices were being generated in a manner that assumed the upper
bound to a Random::GetUInt call was inclusive. Also, GetUInt64 was
being used needlessly when GetUInt32 would suffice. This change
addresses both issues.

Fixes https://crbug.com/1250904

Change-Id: I9ad8e5beb3b52bcb867aeb745dec520c251cba60
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/64744
Auto-Submit: Alastair Donaldson <afdx@google.com>
Reviewed-by: Ben Clayton <bclayton@google.com>
Reviewed-by: Ryan Harrison <rharrison@chromium.org>
Commit-Queue: Alastair Donaldson <afdx@google.com>
Kokoro: Kokoro <noreply+kokoro@google.com>
2021-09-21 16:16:58 +00:00
..
BUILD.gn Fuzzers: Avoid passing target backend as parameter 2021-08-31 22:07:17 +00:00
CMakeLists.txt Unify fuzzer random number generation into a single class 2021-09-03 00:59:35 +00:00
cli.cc Add regex fuzzer 2021-07-28 11:11:26 +00:00
cli.h Add regex fuzzer 2021-07-28 11:11:26 +00:00
fuzzer.cc Fix generation of random indices in regex fuzzer 2021-09-21 16:16:58 +00:00
override_cli_params.h Fuzzers: Avoid passing target backend as parameter 2021-08-31 22:07:17 +00:00
regex_fuzzer_tests.cc Regex fuzzer: replace the value of an integer with 2021-08-05 22:24:20 +00:00
tint_regex_fuzzer.cc Fuzzers: Avoid passing target backend as parameter 2021-08-31 22:07:17 +00:00
tint_regex_hlsl_writer_fuzzer.cc Fuzzers: Avoid passing target backend as parameter 2021-08-31 22:07:17 +00:00
tint_regex_msl_writer_fuzzer.cc Fuzzers: Avoid passing target backend as parameter 2021-08-31 22:07:17 +00:00
tint_regex_spv_writer_fuzzer.cc Fuzzers: Avoid passing target backend as parameter 2021-08-31 22:07:17 +00:00
tint_regex_wgsl_writer_fuzzer.cc Fuzzers: Avoid passing target backend as parameter 2021-08-31 22:07:17 +00:00
wgsl_mutator.cc Fix generation of random indices in regex fuzzer 2021-09-21 16:16:58 +00:00
wgsl_mutator.h Unify fuzzer random number generation into a single class 2021-09-03 00:59:35 +00:00