Skip to content

Commit

Permalink
fix: improve gdb pattern (intel#3614)
Browse files Browse the repository at this point in the history
Improve gdb pattern to avoid a false positive with annotate.info or
gdb-info.1

Signed-off-by: Fabrice Fontaine <[email protected]>
  • Loading branch information
ffontaine authored Dec 19, 2023
1 parent 7dfd2bf commit ba9608d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cve_bin_tool/checkers/gdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ class GdbChecker(Checker):
FILENAME_PATTERNS: list[str] = []
VERSION_PATTERNS = [
r"gdb-([0-9]+\.[0-9]+\.?[0-9]*)",
r"\r?\n([0-9]+\.[0-9]+\.?[0-9]*)[A-Za-z0-9<>()!,_=|'`+*&^{} \\\.\-\"\r\n\t]*GDB ",
r"\r?\n([0-9]+\.[0-9]+\.?[0-9]*)\r?\n[A-Za-z0-9<>()!,_=|'`+*&^{} \\\.\-\"\r\n\t]*GDB ",
]
VENDOR_PRODUCT = [("gnu", "gdb")]

0 comments on commit ba9608d

Please sign in to comment.