Coverage task should have access to readonly_inputs (#2352)

Fixes #2348.

Code duplicated & modified from line 112.

Both the generic and dotnet coverage tasks [iterate over all `readonly_inputs` that they are supplied](bd4dfdc592/src/agent/onefuzz-task/src/tasks/coverage/generic.rs (L98-L115)), so this should be sufficient.
This commit is contained in:
George Pollard
2022-09-08 10:15:30 +12:00
committed by GitHub
parent 44089d32f0
commit df4edbea98

View File

@ -159,6 +159,15 @@ class Libfuzzer(Command):
(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