Skip to content

Commit

Permalink
fix: update binutils pattern (intel#4077)
Browse files Browse the repository at this point in the history
Fix binutils pattern to return 2.32.0 instead of 2.32.0.20190204 from
the following string:

Linux version 4.14.206-perf (oe-user@oe-host) (clang version 6.0.9 for Android NDK, GNU ld (GNU Binutils) 2.32.0.20190204) #1 PREEMPT Mon Jan 29 09:57:30 UTC 2024

Signed-off-by: Fabrice Fontaine <[email protected]>
  • Loading branch information
ffontaine authored Apr 24, 2024
1 parent 377eaf3 commit 878254e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cve_bin_tool/checkers/binutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ class BinutilsChecker(Checker):
r"ld.bfd", # as seen on ubuntu
]
VERSION_PATTERNS = [
r"GNU Binutils[a-zA-Z ]*\) ((\d+\.)*\d+)",
r"BFD header file version %s\r?\nversion ((\d+\.)*\d+)",
r"GNU Binutils[a-zA-Z ]*\) ([0-9]+\.[0-9]+\.?[0-9]*)",
r"BFD header file version %s\r?\nversion ([0-9]+\.[0-9]+\.?[0-9]*)",
]
VENDOR_PRODUCT = [("gnu", "binutils")]

0 comments on commit 878254e

Please sign in to comment.