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 abffa0d commit ec69e35Copy full SHA for ec69e35
cve_bin_tool/cve_scanner.py
@@ -272,7 +272,13 @@ def canonical_convert(
272
else:
273
# Handle a.b.c<string> e.g. 1.20.9rel1
274
pv = re.search(r"\d[.\d]*", product_info.version)
275
- parsed_version = parse_version(pv.group(0))
+ if pv is None:
276
+ parsed_version = "UNKNOWN"
277
+ self.logger.warn(
278
+ f"error parsing {product_info.vendor}.{product_info.product} v{product_info.version} - manual inspection required"
279
+ )
280
+ else:
281
+ parsed_version = parse_version(pv.group(0))
282
return parsed_version, version_between
283
284
def affected(self):
0 commit comments