Skip to content

Commit

Permalink
fix: update bison pattern (#3617)
Browse files Browse the repository at this point in the history
Update bison pattern to avoid a false positive in bison.info raised by
"Introduced in Bison 3.0.3."

Signed-off-by: Fabrice Fontaine <fabrice.fontaine@orange.com>
  • Loading branch information
ffontaine authored Dec 19, 2023
1 parent 14b347f commit 93f3a3c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cve_bin_tool/checkers/bison.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@
class BisonChecker(Checker):
CONTAINS_PATTERNS: list[str] = []
FILENAME_PATTERNS: list[str] = []
VERSION_PATTERNS = [r"Bison ([0-9]+\.[0-9]+\.[0-9]+)"]
VERSION_PATTERNS = [r"GNU Bison ([0-9]+\.[0-9]+\.[0-9]+)\r?\n"]
VENDOR_PRODUCT = [("gnu", "bison")]
2 changes: 1 addition & 1 deletion test/test_data/bison.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# SPDX-License-Identifier: GPL-3.0-or-later

mapping_test_data = [
{"product": "bison", "version": "3.8.2", "version_strings": ["Bison 3.8.2"]}
{"product": "bison", "version": "3.8.2", "version_strings": ["GNU Bison 3.8.2"]}
]
package_test_data = [
{
Expand Down

0 comments on commit 93f3a3c

Please sign in to comment.