Skip to content

Commit

Permalink
fix: improve libarchive checker
Browse files Browse the repository at this point in the history
freebsd:libarchive is a valid CPE ID

While at it, add an openwrt test package

Signed-off-by: Fabrice Fontaine <fabrice.fontaine@orange.com>
  • Loading branch information
ffontaine committed Jan 11, 2023
1 parent 5ce7111 commit f0703cc
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cve_bin_tool/checkers/libarchive.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"""
CVE checker for libarchive
https://www.cvedetails.com/product/11632/Freebsd-Libarchive.html?vendor_id=6
https://www.cvedetails.com/product/26168/Libarchive-Libarchive.html?vendor_id=12872
"""
Expand All @@ -17,4 +18,4 @@ class LibarchiveChecker(Checker):
CONTAINS_PATTERNS: list[str] = []
FILENAME_PATTERNS = [r"libarchive.so"]
VERSION_PATTERNS = [r"libarchive ([0-9]+\.[0-9]+\.[0-9]+)"]
VENDOR_PRODUCT = [("libarchive", "libarchive")]
VENDOR_PRODUCT = [("freebsd", "libarchive"), ("libarchive", "libarchive")]
Binary file not shown.
6 changes: 6 additions & 0 deletions test/test_data/libarchive.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,10 @@
"product": "libarchive",
"version": "3.4.3",
},
{
"url": "https://downloads.openwrt.org/releases/packages-19.07/x86_64/packages/",
"package_name": "libarchive_3.4.2-1_x86_64.ipk",
"product": "libarchive",
"version": "3.4.2",
},
]

0 comments on commit f0703cc

Please sign in to comment.