From c0d3b1c5a7d7068cc98d2f4b78e46d417721dfc8 Mon Sep 17 00:00:00 2001 From: fdt622 Date: Mon, 30 Sep 2024 15:00:29 +0800 Subject: [PATCH] fix bug in triaging stack func --- experiment/builder_runner.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/experiment/builder_runner.py b/experiment/builder_runner.py index b89c312e4..457f92a3d 100644 --- a/experiment/builder_runner.py +++ b/experiment/builder_runner.py @@ -415,11 +415,10 @@ def _parse_libfuzzer_logs(self, SemanticCheckResult(SemanticCheckResult.FP_NEAR_INIT_CRASH, symptom, crash_stacks, crash_func)) - # FP case 3: 1st func of the 1st thread stack is in fuzz target. + # FP case 3: no func in 1st thread stack belongs to testing proj. if len(crash_stacks) > 0: first_stack = crash_stacks[0] - # Check the first stack frame of the first stack only. - for stack_frame in first_stack[:1]: + for stack_frame in first_stack: if self._stack_func_is_of_testing_project(stack_frame): if 'LLVMFuzzerTestOneInput' in stack_frame: return ParseResult(