We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b8fcf3b commit e70bf33Copy full SHA for e70bf33
cve_bin_tool/parsers/opkg.py
@@ -39,9 +39,10 @@ def run_checker(self, filename):
39
if cpe_id is None:
40
self.logger.debug(f"{filename} doesn't contain any CPE-ID")
41
return
42
- # version is always suffixed by a digit (e.g. 2.90-1 instead of 2.90)
+ # version is always suffixed (e.g. 2.90-r1 instead of 2.90)
43
+ # it can sometimes be prefixed (e.g. gen_2.90_v0.2.3-r1)
44
version = search(
- compile(r"^Version: (.+)-([0-9\.]+)$", MULTILINE), lines
45
+ compile(r"^Version: [a-z_]*([0-9_\-\.]+)[-_]+", MULTILINE), lines
46
).group(1)
47
vendor, product, _ = decode_cpe22(f"{cpe_id.group(1)}:{version}")
48
vendorlist: list[ScanInfo] = [
0 commit comments