Skip to content

Commit fa35800

Browse files
authored
fix: update linuxptp checker (#5103)
Fix linuxptp pattern to avoid a false positive with a proprietary binary Signed-off-by: Fabrice Fontaine <[email protected]>
1 parent b8fcf3b commit fa35800

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cve_bin_tool/checkers/linuxptp.py

Lines changed: 1 addition & 1 deletion
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"[ \n]+(?: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)