From 28674d7c505e3737b04e4dfb239e58d01b450637 Mon Sep 17 00:00:00 2001 From: Alastair Donaldson Date: Wed, 6 Apr 2022 15:59:44 +0000 Subject: [PATCH] AST fuzzer: reduce depth for unary wrapping Reduces the extent to which programs with unparsable expressions are generated by limiting the recursion depth allowed for wrapping unary operators. Also updates some nested namespaces to use more modern C++. Change-Id: I4637c20c9c72c6b315c04c9322d069f0e35859b3 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/85580 Reviewed-by: Ryan Harrison Reviewed-by: Antonio Maiorano Kokoro: Kokoro Commit-Queue: Alastair Donaldson Auto-Submit: Alastair Donaldson --- .../tint_ast_fuzzer/mutation_finders/wrap_unary_operators.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tint/fuzzers/tint_ast_fuzzer/mutation_finders/wrap_unary_operators.cc b/src/tint/fuzzers/tint_ast_fuzzer/mutation_finders/wrap_unary_operators.cc index e12f44a7fa..52cbc45f67 100644 --- a/src/tint/fuzzers/tint_ast_fuzzer/mutation_finders/wrap_unary_operators.cc +++ b/src/tint/fuzzers/tint_ast_fuzzer/mutation_finders/wrap_unary_operators.cc @@ -28,7 +28,7 @@ namespace fuzzers { namespace ast_fuzzer { namespace { -const size_t kMaxExpressionSize = 100; +const size_t kMaxExpressionSize = 50; } // namespace MutationList MutationFinderWrapUnaryOperators::FindMutations(