mirror of
https://github.com/microsoft/onefuzz.git
synced 2025-06-17 04:18:07 +00:00
expose minimized_stack_depth functionality in the CLI/API (#715)
This commit is contained in:
@ -311,6 +311,17 @@ libfuzzer_linux = JobTemplate(
|
||||
),
|
||||
],
|
||||
),
|
||||
UserField(
|
||||
name="minimized_stack_depth",
|
||||
help="Number of frames to include in the minimized stack",
|
||||
type=UserFieldType.Int,
|
||||
locations=[
|
||||
UserFieldLocation(
|
||||
op=UserFieldOperation.replace,
|
||||
path="/tasks/1/task/minimized_stack_depth",
|
||||
),
|
||||
],
|
||||
),
|
||||
UserField(
|
||||
name="tags",
|
||||
help=TAGS_HELP,
|
||||
|
@ -351,6 +351,9 @@ def build_task_config(
|
||||
if TaskFeature.report_list in definition.features:
|
||||
config.report_list = task_config.task.report_list
|
||||
|
||||
if TaskFeature.minimized_stack_depth in definition.features:
|
||||
config.minimized_stack_depth = task_config.task.minimized_stack_depth
|
||||
|
||||
if TaskFeature.expect_crash_on_failure in definition.features:
|
||||
config.expect_crash_on_failure = (
|
||||
task_config.task.expect_crash_on_failure
|
||||
|
@ -106,6 +106,7 @@ TASK_DEFINITIONS = {
|
||||
TaskFeature.target_timeout,
|
||||
TaskFeature.check_retry_count,
|
||||
TaskFeature.check_fuzzer_help,
|
||||
TaskFeature.minimized_stack_depth,
|
||||
],
|
||||
vm=VmDefinition(compare=Compare.AtLeast, value=1),
|
||||
containers=[
|
||||
@ -378,6 +379,7 @@ TASK_DEFINITIONS = {
|
||||
TaskFeature.check_asan_log,
|
||||
TaskFeature.check_debugger,
|
||||
TaskFeature.check_retry_count,
|
||||
TaskFeature.minimized_stack_depth,
|
||||
],
|
||||
vm=VmDefinition(compare=Compare.AtLeast, value=1),
|
||||
containers=[
|
||||
@ -424,6 +426,7 @@ TASK_DEFINITIONS = {
|
||||
TaskFeature.check_debugger,
|
||||
TaskFeature.check_retry_count,
|
||||
TaskFeature.report_list,
|
||||
TaskFeature.minimized_stack_depth,
|
||||
],
|
||||
vm=VmDefinition(compare=Compare.AtLeast, value=1),
|
||||
containers=[
|
||||
@ -487,6 +490,7 @@ TASK_DEFINITIONS = {
|
||||
TaskFeature.check_fuzzer_help,
|
||||
TaskFeature.check_retry_count,
|
||||
TaskFeature.report_list,
|
||||
TaskFeature.minimized_stack_depth,
|
||||
],
|
||||
vm=VmDefinition(compare=Compare.AtLeast, value=1),
|
||||
containers=[
|
||||
|
Reference in New Issue
Block a user