From 151f59e8fc964d7c388994ea59e7d5bb2e3abc83 Mon Sep 17 00:00:00 2001 From: Peter Marko Date: Wed, 30 Oct 2024 19:49:50 +0100 Subject: [PATCH] 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: f54684e311225e509344c58c5a7a88bab2d8f946) Signed-off-by: Peter Marko Signed-off-by: Richard Purdie --- meta/lib/oe/cve_check.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/lib/oe/cve_check.py b/meta/lib/oe/cve_check.py index 487f30dc251..268adfb528c 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): if not status: return {} - status_split = status.split(':', 5) + status_split = status.split(':', 4) status_out = {} status_out["detail"] = status_split[0] product = "*"