Skip to content

Commit

Permalink
fix: update zsh pattern (intel#3613)
Browse files Browse the repository at this point in the history
Update zsh pattern to avoid a false positive in autoconf.info raised by
"$ zsh-4.3.4 ./lineo"

Signed-off-by: Fabrice Fontaine <[email protected]>
  • Loading branch information
ffontaine authored Dec 19, 2023
1 parent d3f67d8 commit 7dfd2bf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 14 deletions.
5 changes: 1 addition & 4 deletions cve_bin_tool/checkers/zsh.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,5 @@ class ZshChecker(Checker):
r"newuser.so",
r"zsh",
]
VERSION_PATTERNS = [
r"zsh/([0-9]+\.[0-9]+(\.[0-9]+)?)",
r"zsh-([0-9]+\.[0-9]+(\.[0-9]+)?)",
]
VERSION_PATTERNS = [r"zsh/([0-9]+\.[0-9]+(\.[0-9]+)?)"]
VENDOR_PRODUCT = [("zsh", "zsh"), ("zsh_project", "zsh")]
11 changes: 1 addition & 10 deletions test/test_data/zsh.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,7 @@
# SPDX-License-Identifier: GPL-3.0-or-later

mapping_test_data = [
{
"product": "zsh",
"version": "5.8.1",
"version_strings": ["zsh-5.8.1"],
},
{
"product": "zsh",
"version": "5.8",
"version_strings": ["zsh/5.8"],
},
{"product": "zsh", "version": "5.8", "version_strings": ["zsh/5.8"]},
]
package_test_data = [
{
Expand Down

0 comments on commit 7dfd2bf

Please sign in to comment.