Skip to content

Commit f5a2316

Browse files
authored
fix: update tcpdump checker (#2972)
Update tcpdump checker to avoid a false positive with shortcut-fe.ko Signed-off-by: Fabrice Fontaine <[email protected]>
1 parent 5c2ce74 commit f5a2316

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

cve_bin_tool/checkers/tcpdump.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ class TcpdumpChecker(Checker):
2121
r"tcpdump-([0-9]+\.[0-9]+\.[0-9]+)",
2222
r"([0-9]+\.[0-9]+\.[0-9]+)\r?\n[0-9a-f]*lookup_(?:emem|protoid)",
2323
r"Running\r?\n([0-9]+\.[0-9]+\.[0-9]+)\r?\n0123456789",
24-
r"tcpdump[0-9a-zA-Z ,!'%:_=\(\)\\\.\-\r\n]*([0-9]+\.[0-9]+\.[0-9]+)",
24+
r"tcpdump[0-9a-zA-Z ,!'%:_=\(\)\\\.\-\r\n]*\r?\n([0-9]+\.[0-9]+\.[0-9]+)",
2525
]
2626
VENDOR_PRODUCT = [("tcpdump", "tcpdump")]

test/test_data/tcpdump.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
"version": "4.9.2",
2424
"version_strings": ["Running\n4.9.2\n0123456789"],
2525
},
26+
{"product": "tcpdump", "version": "4.1.1", "version_strings": ["tcpdump\n4.1.1"]},
2627
]
2728
package_test_data = [
2829
{

0 commit comments

Comments
 (0)