From ab5e4322495a7dfd47ff0c51bdcca62abd82b887 Mon Sep 17 00:00:00 2001 From: George Pollard Date: Wed, 7 Sep 2022 00:46:12 +0000 Subject: [PATCH] Coverage task should have access to readonly_inputs --- src/cli/onefuzz/templates/libfuzzer.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/cli/onefuzz/templates/libfuzzer.py b/src/cli/onefuzz/templates/libfuzzer.py index adf766becb..87b9875430 100644 --- a/src/cli/onefuzz/templates/libfuzzer.py +++ b/src/cli/onefuzz/templates/libfuzzer.py @@ -159,6 +159,15 @@ def _create_tasks( (ContainerType.coverage, containers[ContainerType.coverage]), (ContainerType.readonly_inputs, containers[ContainerType.inputs]), ] + + if ContainerType.readonly_inputs in containers: + coverage_containers.append( + ( + ContainerType.readonly_inputs, + containers[ContainerType.readonly_inputs], + ) + ) + self.logger.info("creating coverage task") # The `coverage` task is not libFuzzer-aware, so invocations of the target fuzzer