Skip to content

Commit 0c481e4

Browse files
authored
fix: update linuxptp pattern (#4765)
Fix linuxptp pattern to avoid a false positive with the following strings: DPAA2 PTP Clock 1.0 Signed-off-by: Fabrice Fontaine <[email protected]>
1 parent d8e54fa commit 0c481e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cve_bin_tool/checkers/linuxptp.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ class LinuxptpChecker(Checker):
1717
CONTAINS_PATTERNS: list[str] = []
1818
FILENAME_PATTERNS: list[str] = []
1919
VERSION_PATTERNS = [
20-
r"(?:ptp|PTP)[A-Za-z0-9_:% \[\]\-\.\r\n]*\r?\n([0-9]\.[0-9])\r?\n"
20+
r"(?:ptp|PTP_)[A-Za-z0-9_:% \[\]\-\.\r\n]*\r?\n([0-9]\.[0-9])\r?\n"
2121
]
2222
VENDOR_PRODUCT = [("linuxptp_project", "linuxptp")]

0 commit comments

Comments
 (0)