Skip to content

Commit

Permalink
Merge pull request #336 from microsoft/main
Browse files Browse the repository at this point in the history
Fork Sync: Update from parent repository
  • Loading branch information
AdamL-Microsoft authored May 19, 2023
2 parents 094fb8c + 5048e6d commit a3edb3b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/cli/onefuzz/templates/libfuzzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -897,6 +897,7 @@ def qemu_user(
no_check_fuzzer_help: bool = False,
extra_container: Optional[Container] = None,
crashes: Optional[Container] = None,
readonly_inputs: Optional[Container] = None,
) -> Optional[Job]:
"""
libfuzzer tasks, wrapped via qemu-user (PREVIEW FEATURE)
Expand Down Expand Up @@ -950,7 +951,7 @@ def qemu_user(
)

if existing_inputs:
self.onefuzz.containers.get(existing_inputs)
self.onefuzz.containers.get(existing_inputs) # ensure it exists
helper.containers[ContainerType.inputs] = existing_inputs
else:
helper.define_containers(ContainerType.inputs)
Expand All @@ -968,6 +969,10 @@ def qemu_user(
if extra_container is not None:
fuzzer_containers.append((ContainerType.extra, extra_container))

if readonly_inputs is not None:
self.onefuzz.containers.get(readonly_inputs) # ensure it exists
fuzzer_containers.append((ContainerType.readonly_inputs, readonly_inputs))

helper.create_containers()

target_exe_blob_name = helper.setup_relative_blob_name(target_exe, None)
Expand Down

0 comments on commit a3edb3b

Please sign in to comment.