Skip to content

Commit 6974ce3

Browse files
authored
fix: update firefox checker (#5543)
Update first firefox pattern to avoid false positive Signed-off-by: Fontaine Fabrice <fabrice.fontaine@orange.com>
1 parent 4cf07f9 commit 6974ce3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cve_bin_tool/checkers/firefox.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class FirefoxChecker(Checker):
1717
CONTAINS_PATTERNS: list[str] = []
1818
FILENAME_PATTERNS: list[str] = [r"firefox"]
1919
VERSION_PATTERNS = [
20-
r"firefox-([0-9]+.[0-9]+(.[0-9]+)?)",
20+
r"/firefox-([0-9]+.[0-9]+(.[0-9]+)?)",
2121
r'"name":"firefox","version":"([0-9]+.[0-9]+(.[0-9]+)?)',
2222
]
2323
VENDOR_PRODUCT = [("mozilla", "firefox")]

test/test_data/firefox.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
{
66
"product": "firefox",
77
"version": "83.0",
8-
"version_strings": [r"firefox-83.0"],
8+
"version_strings": [r"/firefox-83.0"],
99
},
1010
]
1111
package_test_data = [

0 commit comments

Comments
 (0)