Skip to content

Commit

Permalink
cve-check: do not skip cve status description after :
Browse files Browse the repository at this point in the history
Correct maxsplit parameter from 5 to 4 to not drop text if
description contains ":".

Example:
>>> "detail: cpe:vendor:product:description:cont".split(':', 5)
['detail', ' cpe', 'vendor', 'product', 'description', 'xxx']
>>> "detail: cpe:vendor:product:description:cont".split(':', 4)
['detail', ' cpe', 'vendor', 'product', 'description:xxx']

(From OE-Core rev: f54684e311225e509344c58c5a7a88bab2d8f946)

Signed-off-by: Peter Marko <[email protected]>
Signed-off-by: Richard Purdie <[email protected]>
  • Loading branch information
petermarko authored and rpurdie committed Oct 31, 2024
1 parent 8fba1cb commit 151f59e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion meta/lib/oe/cve_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ def decode_cve_status(d, cve):
if not status:
return {}

status_split = status.split(':', 5)
status_split = status.split(':', 4)
status_out = {}
status_out["detail"] = status_split[0]
product = "*"
Expand Down

0 comments on commit 151f59e

Please sign in to comment.