commit | 28674d7c505e3737b04e4dfb239e58d01b450637 | [log] [tgz] |
---|---|---|
author | Alastair Donaldson <afdx@google.com> | Wed Apr 06 15:59:44 2022 +0000 |
committer | Tint LUCI CQ <tint-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Apr 06 15:59:44 2022 +0000 |
tree | 4159daa6e334e70118f3b0d32d91395e8c9b01d5 | |
parent | a730eb738e9f00fb52e9ac38cebe978373602a1e [diff] |
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 <rharrison@chromium.org> Reviewed-by: Antonio Maiorano <amaiorano@google.com> Kokoro: Kokoro <noreply+kokoro@google.com> Commit-Queue: Alastair Donaldson <afdx@google.com> Auto-Submit: Alastair Donaldson <afdx@google.com>
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 e12f44a..52cbc45 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 ast_fuzzer { namespace { -const size_t kMaxExpressionSize = 100; +const size_t kMaxExpressionSize = 50; } // namespace MutationList MutationFinderWrapUnaryOperators::FindMutations(