Skip to content

Commit

Permalink
fix: update binutils pattern
Browse files Browse the repository at this point in the history
Update binutils pattern to avoid a false positive in libtool.info-1
raised by libbfd-2.9.0.so

Signed-off-by: Fabrice Fontaine <[email protected]>
  • Loading branch information
ffontaine committed Dec 17, 2023
1 parent 098a96f commit 4fdacc2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion cve_bin_tool/checkers/binutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,5 +79,8 @@ class BinutilsChecker(Checker):
# distro-specific names
r"ld.bfd", # as seen on ubuntu
]
VERSION_PATTERNS = [r"libbfd-((\d+\.)*\d+)[\d\w.-]*so"]
VERSION_PATTERNS = [
r"GNU Binutils[a-zA-Z ]*\) ((\d+\.)*\d+)",
r"BFD header file version %s\r?\nversion ((\d+\.)*\d+)",
]
VENDOR_PRODUCT = [("gnu", "binutils")]
2 changes: 1 addition & 1 deletion test/test_data/binutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"version": "2.31.1",
"version_strings": [
"Using the --size-sort and --undefined-only options together",
"libbfd-2.31.1-system.so",
"(GNU Binutils for Ubuntu) 2.31.1",
"Auxiliary filter for shared object symbol table",
],
}
Expand Down

0 comments on commit 4fdacc2

Please sign in to comment.