Skip to content
This repository was archived by the owner on Nov 1, 2023. It is now read-only.

Commit 5bfcc4e

Browse files
nharper285mgreisen
andauthored
Port 'missing field' error fix to C# (#2905)
* Port Fix to C#. * Remove extra space. * Adding correct condition. --------- Co-authored-by: Marc Greisen <mgreisen@microsoft.com>
1 parent 091c870 commit 5bfcc4e

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

src/ApiService/ApiService/OneFuzzTypes/Model.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1002,6 +1002,7 @@ Uri HeartbeatQueue
10021002
// Deprecated. Retained for processing old table data.
10031003
public string? CoverageFilter { get; set; }
10041004

1005+
public bool? PreserveExistingOutputs { get; set; }
10051006
public string? ModuleAllowlist { get; set; }
10061007
public string? SourceAllowlist { get; set; }
10071008
public string? TargetAssembly { get; set; }

src/ApiService/ApiService/onefuzzlib/Config.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,10 @@ await _containers.GetContainerSasUrl(x.Item2.Name, StorageType.Corpus, ConvertPe
247247
config.CheckFuzzerHelp = task.Config.Task.CheckFuzzerHelp ?? true;
248248
}
249249

250+
if (definition.Features.Contains(TaskFeature.PreserveExistingOutputs)) {
251+
config.PreserveExistingOutputs = task.Config.Task.PreserveExistingOutputs ?? false;
252+
}
253+
250254
if (definition.Features.Contains(TaskFeature.ReportList)) {
251255
config.ReportList = task.Config.Task.ReportList;
252256
}

src/ApiService/ApiService/onefuzzlib/Defs.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -405,6 +405,7 @@ public static class Defs {
405405
TaskFeature.TargetEnv,
406406
TaskFeature.TargetOptions,
407407
TaskFeature.CheckFuzzerHelp,
408+
TaskFeature.PreserveExistingOutputs,
408409
},
409410
Vm: new VmDefinition(Compare: Compare.Equal, Value: 1),
410411
Containers: new[] {

0 commit comments

Comments
 (0)