mirror of
https://github.com/microsoft/onefuzz.git
synced 2025-06-18 12:48:07 +00:00
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:
@ -159,6 +159,15 @@ class Libfuzzer(Command):
|
|||||||
(ContainerType.coverage, containers[ContainerType.coverage]),
|
(ContainerType.coverage, containers[ContainerType.coverage]),
|
||||||
(ContainerType.readonly_inputs, containers[ContainerType.inputs]),
|
(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")
|
self.logger.info("creating coverage task")
|
||||||
|
|
||||||
# The `coverage` task is not libFuzzer-aware, so invocations of the target fuzzer
|
# The `coverage` task is not libFuzzer-aware, so invocations of the target fuzzer
|
||||||
|
Reference in New Issue
Block a user