Skip to content

Commit e9ea0e7

Browse files
committed
fix: update zsh pattern
Update zsh pattern to avoid the following false positive raised in autoconf.info by "$ zsh-4.3.4 ./lineo" Signed-off-by: Fabrice Fontaine <[email protected]>
1 parent 098a96f commit e9ea0e7

File tree

2 files changed

+2
-14
lines changed

2 files changed

+2
-14
lines changed

cve_bin_tool/checkers/zsh.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,5 @@ class ZshChecker(Checker):
2828
r"newuser.so",
2929
r"zsh",
3030
]
31-
VERSION_PATTERNS = [
32-
r"zsh/([0-9]+\.[0-9]+(\.[0-9]+)?)",
33-
r"zsh-([0-9]+\.[0-9]+(\.[0-9]+)?)",
34-
]
31+
VERSION_PATTERNS = [r"zsh/([0-9]+\.[0-9]+(\.[0-9]+)?)"]
3532
VENDOR_PRODUCT = [("zsh", "zsh"), ("zsh_project", "zsh")]

test/test_data/zsh.py

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,7 @@
22
# SPDX-License-Identifier: GPL-3.0-or-later
33

44
mapping_test_data = [
5-
{
6-
"product": "zsh",
7-
"version": "5.8.1",
8-
"version_strings": ["zsh-5.8.1"],
9-
},
10-
{
11-
"product": "zsh",
12-
"version": "5.8",
13-
"version_strings": ["zsh/5.8"],
14-
},
5+
{"product": "zsh", "version": "5.8", "version_strings": ["zsh/5.8"]},
156
]
167
package_test_data = [
178
{

0 commit comments

Comments
 (0)