From 04643a9eeda12a40c86516d073144a8d7363babb Mon Sep 17 00:00:00 2001 From: Cheick Keita Date: Tue, 3 Nov 2020 12:46:18 -0800 Subject: [PATCH] fixing libfuzzer_merge (#240) --- src/api-service/__app__/onefuzzlib/tasks/defs.py | 11 ++++++++--- src/cli/onefuzz/templates/libfuzzer.py | 1 + 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/api-service/__app__/onefuzzlib/tasks/defs.py b/src/api-service/__app__/onefuzzlib/tasks/defs.py index 0ca320b44e..e65eb7d421 100644 --- a/src/api-service/__app__/onefuzzlib/tasks/defs.py +++ b/src/api-service/__app__/onefuzzlib/tasks/defs.py @@ -190,10 +190,15 @@ permissions=[ContainerPermission.Read, ContainerPermission.List], ), ContainerDefinition( - type=ContainerType.readonly_inputs, - compare=Compare.AtLeast, + type=ContainerType.unique_inputs, + compare=Compare.Equal, value=1, - permissions=[ContainerPermission.Read, ContainerPermission.List], + permissions=[ + ContainerPermission.Create, + ContainerPermission.List, + ContainerPermission.Read, + ContainerPermission.Write, + ], ), ContainerDefinition( type=ContainerType.inputs, diff --git a/src/cli/onefuzz/templates/libfuzzer.py b/src/cli/onefuzz/templates/libfuzzer.py index ce0e418353..c47daaa4eb 100644 --- a/src/cli/onefuzz/templates/libfuzzer.py +++ b/src/cli/onefuzz/templates/libfuzzer.py @@ -193,6 +193,7 @@ def basic( ContainerType.unique_reports, ContainerType.no_repro, ContainerType.coverage, + ContainerType.unique_inputs, ) if existing_inputs: