From b03813086b5d8fe15643dfd69574c3f54cc88e5e Mon Sep 17 00:00:00 2001 From: Vincent Rabaud Date: Tue, 2 Apr 2024 15:57:29 +0200 Subject: [PATCH] Rename flags --- tests/oss-fuzz/build.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/oss-fuzz/build.sh b/tests/oss-fuzz/build.sh index 517cad8782..754dbc2cfd 100755 --- a/tests/oss-fuzz/build.sh +++ b/tests/oss-fuzz/build.sh @@ -120,7 +120,11 @@ then this_dir=\$(dirname \"\$0\") export TEST_DATA_DIRS=\$this_dir/corpus chmod +x \$this_dir/$fuzz_basename -\$this_dir/$fuzz_basename --fuzz=$fuzz_entrypoint -- \$@ +ARGS=\$* +ARGS=\$(echo \${ARGS} | sed \"s/-timeout=\\([0-9]\\+\\)/--fuzz_for=\1s/g\") +ARGS=\$(echo \${ARGS} | sed \"s/-rss_limit_mb/--rss_limit_mb/g\") +ARGS=\$(echo \${ARGS} | sed \"s/-runs=\\([0-9]\\+\\)/ /g}\") +\$this_dir/$fuzz_basename --fuzz=$fuzz_entrypoint -- \$ARGS chmod -x \$this_dir/$fuzz_basename" > $OUT/$TARGET_FUZZER chmod +x $OUT/$TARGET_FUZZER done