Skip to content

Commit

Permalink
fix: update linuxptp pattern (intel#4765)
Browse files Browse the repository at this point in the history
Fix linuxptp pattern to avoid a false positive with the following
strings:

DPAA2 PTP Clock
1.0

Signed-off-by: Fabrice Fontaine <[email protected]>
  • Loading branch information
ffontaine authored Feb 7, 2025
1 parent d8e54fa commit 0c481e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cve_bin_tool/checkers/linuxptp.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ class LinuxptpChecker(Checker):
CONTAINS_PATTERNS: list[str] = []
FILENAME_PATTERNS: list[str] = []
VERSION_PATTERNS = [
r"(?:ptp|PTP)[A-Za-z0-9_:% \[\]\-\.\r\n]*\r?\n([0-9]\.[0-9])\r?\n"
r"(?:ptp|PTP_)[A-Za-z0-9_:% \[\]\-\.\r\n]*\r?\n([0-9]\.[0-9])\r?\n"
]
VENDOR_PRODUCT = [("linuxptp_project", "linuxptp")]

0 comments on commit 0c481e4

Please sign in to comment.