diff options
| author | Peter Marko <peter.marko@siemens.com> | 2024-10-30 19:49:50 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-11-01 12:58:19 +0000 |
| commit | b97a5f9b0e0e6ffaa3cdbbb09645cc734e1df0c6 (patch) | |
| tree | 4d9b69e741f830024f5bf94504bc1f55660b48ab /meta | |
| parent | 6ddfb2a5e4cb7448fc7e6947d1fa1d1942e6d266 (diff) | |
| download | poky-b97a5f9b0e0e6ffaa3cdbbb09645cc734e1df0c6.tar.gz | |
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>
Diffstat (limited to 'meta')
| -rw-r--r-- | meta/lib/oe/cve_check.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/lib/oe/cve_check.py b/meta/lib/oe/cve_check.py index 487f30dc25..268adfb528 100644 --- a/meta/lib/oe/cve_check.py +++ b/meta/lib/oe/cve_check.py | |||
| @@ -239,7 +239,7 @@ def decode_cve_status(d, cve): | |||
| 239 | if not status: | 239 | if not status: |
| 240 | return {} | 240 | return {} |
| 241 | 241 | ||
| 242 | status_split = status.split(':', 5) | 242 | status_split = status.split(':', 4) |
| 243 | status_out = {} | 243 | status_out = {} |
| 244 | status_out["detail"] = status_split[0] | 244 | status_out["detail"] = status_split[0] |
| 245 | product = "*" | 245 | product = "*" |
