Skip to content

Commit

Permalink
fix: update busybox checker (#4679)
Browse files Browse the repository at this point in the history
Update busybox pattern to catch version 1.00 which has been released in
2004 but is still encountered on some embedded systems ...

Signed-off-by: Fabrice Fontaine <fabrice.fontaine@orange.com>
  • Loading branch information
ffontaine authored Jan 8, 2025
1 parent a72b30d commit d2519c1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cve_bin_tool/checkers/busybox.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ class BusyboxChecker(Checker):
# r"BusyBox is copyrighted by many authors between 1998-2015.",
]
FILENAME_PATTERNS = [r"busybox"]
VERSION_PATTERNS = [r"BusyBox v([0-9]+\.[0-9]+\.[0-9]+)"]
VERSION_PATTERNS = [r"BusyBox v([0-9]+\.[0-9]+(\.[0-9]+)?)"]
VENDOR_PRODUCT = [("busybox", "busybox")]
3 changes: 2 additions & 1 deletion test/test_data/busybox.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
# SPDX-License-Identifier: GPL-3.0-or-later

mapping_test_data = [
{"product": "busybox", "version": "1.18.3", "version_strings": ["BusyBox v1.18.3"]}
{"product": "busybox", "version": "1.18.3", "version_strings": ["BusyBox v1.18.3"]},
{"product": "busybox", "version": "1.00", "version_strings": ["BusyBox v1.00"]},
]
package_test_data = [
{
Expand Down

0 comments on commit d2519c1

Please sign in to comment.