From 309a2b7878fb433c7af896f2d539c3a10427327c Mon Sep 17 00:00:00 2001 From: Mihai Maruseac Date: Sun, 14 Jul 2024 17:43:44 -0800 Subject: [PATCH] Fully exclude `/usr/` paths. (#483) Drive-by, following https://github.com/google/oss-fuzz-gen/pull/478#discussion_r1677235224 Signed-off-by: mihaimaruseac@google.com --- experimental/manual/oss_fuzz_vuln_prompt.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/experimental/manual/oss_fuzz_vuln_prompt.py b/experimental/manual/oss_fuzz_vuln_prompt.py index 0c5d2c1bb5..f89bf7c755 100644 --- a/experimental/manual/oss_fuzz_vuln_prompt.py +++ b/experimental/manual/oss_fuzz_vuln_prompt.py @@ -66,8 +66,7 @@ STACK_FRAME_START_REGEX = re.compile(r'\s*#\d+\s+0x[0-9A-Fa-f]+\s+') STACK_FRAME_PATH_LINE_REGEX = re.compile( r'(?<=\[|\(|\s)([a-zA-Z/.][^\s]*?)\s*(:|@)\s*(\d+)(?=\]$|\)$|:\d+$|$)') -EXCLUDED_FILE_PATH_SUBSTRINGS = ('/compiler-rt/', '/glibc-', - '/usr/local/include/') +EXCLUDED_FILE_PATH_SUBSTRINGS = ('/compiler-rt/', '/glibc-', '/usr/') def get_local_repo_path(repo_url):