mirror of
https://git.yoctoproject.org/poky
synced 2026-04-13 14:02:21 +02:00
cve-check: do not skip cve status description after :
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: 3c4d8ca41ac0b429af92bf0ea84f1dfd0cda9e1f)
Signed-off-by: Peter Marko <peter.marko@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
6ddfb2a5e4
commit
b97a5f9b0e
@@ -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 = "*"
|
||||
|
||||
Reference in New Issue
Block a user