From 284dad011ea5f5afafe26ea705e1d2a3f24f3a89 Mon Sep 17 00:00:00 2001 From: Tom Ritter Date: Wed, 29 Jul 2020 11:56:23 -0500 Subject: [PATCH] [rnp] Add afl engine (#4212) * [rnp] Add afl engine * Add fuzz_dump and fuzz_keyring to the exception list These binaries - from https://github.com/rnpgp/rnp/tree/master/src/fuzzing - are very tiny and just call into the library with a single API, and are not staticly compiled - so they have very few UBSAN calls. --- infra/base-images/base-runner/test_all | 2 +- projects/rnp/project.yaml | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/infra/base-images/base-runner/test_all b/infra/base-images/base-runner/test_all index 3a38e6289..d2ddea665 100755 --- a/infra/base-images/base-runner/test_all +++ b/infra/base-images/base-runner/test_all @@ -133,7 +133,7 @@ if [ "$BROKEN_TARGETS_PERCENTAGE" -gt "$ALLOWED_BROKEN_TARGETS_PERCENTAGE" ]; th # TODO: figure out how to not fail the "special" cases handled below. Those # are from "example" and "c-ares" projects and are too small targets to pass. - if [ "$(ls $OUT/do_stuff_fuzzer $OUT/ares_*_fuzzer $OUT/checksum_fuzzer $OUT/xmltest $OUT/fuzz_compression_sas_rle 2>/dev/null | wc -l)" -gt "0" ]; then + if [ "$(ls $OUT/do_stuff_fuzzer $OUT/ares_*_fuzzer $OUT/checksum_fuzzer $OUT/fuzz_dump $OUT/fuzz_keyring $OUT/xmltest $OUT/fuzz_compression_sas_rle 2>/dev/null | wc -l)" -gt "0" ]; then exit 0 fi diff --git a/projects/rnp/project.yaml b/projects/rnp/project.yaml index c0a08ea3b..40bce4b11 100755 --- a/projects/rnp/project.yaml +++ b/projects/rnp/project.yaml @@ -8,4 +8,5 @@ sanitizers: - undefined fuzzing_engines: - libfuzzer - - honggfuzz \ No newline at end of file + - honggfuzz + - afl \ No newline at end of file