Skip to content

Commit ada4a0c

Browse files
authored
fix: update iputils checker (#5548)
To avoid false positives, enforce that iputils version has 8 digits Signed-off-by: Fontaine Fabrice <fabrice.fontaine@orange.com>
1 parent c1342e9 commit ada4a0c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cve_bin_tool/checkers/iputils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class IputilsChecker(Checker):
1818
CONTAINS_PATTERNS: list[str] = []
1919
FILENAME_PATTERNS: list[str] = []
2020
VERSION_PATTERNS = [
21-
r"([0-9]+)\r?\n[a-z, ]*iputils",
22-
r"iputils[A-Za-z0-9 \-\r\n]*\r?\n([0-9]+)\r?\n",
21+
r"([0-9]{8})\r?\n[a-z, ]*iputils",
22+
r"iputils[A-Za-z0-9 \-\r\n]*\r?\n([0-9]{8})\r?\n",
2323
]
2424
VENDOR_PRODUCT = [("iputils", "iputils"), ("iputils_project", "iputils")]

0 commit comments

Comments
 (0)