From 0c481e4bb1cf46873667d2660e2fcd2e5f545092 Mon Sep 17 00:00:00 2001 From: Fabrice Fontaine Date: Fri, 7 Feb 2025 19:46:34 +0100 Subject: [PATCH] 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 --- cve_bin_tool/checkers/linuxptp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cve_bin_tool/checkers/linuxptp.py b/cve_bin_tool/checkers/linuxptp.py index 6f459a099d..76605b39af 100644 --- a/cve_bin_tool/checkers/linuxptp.py +++ b/cve_bin_tool/checkers/linuxptp.py @@ -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")]