summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Marko <peter.marko@siemens.com>2023-09-27 23:06:32 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-09-28 12:37:47 +0100
commitd9d8cd345f2a4b5ab7996f8a087413c0495d41c5 (patch)
treec8ac55f4fee283fb8e5795e57ccca39acabb5e39
parent41c15b1baebd0dd3d31a01f09d593d0f0db085b6 (diff)
downloadpoky-d9d8cd345f2a4b5ab7996f8a087413c0495d41c5.tar.gz
json-c: define CVE_VERSION
Recently NVD updated all CVEs for json-c and old fixed cves are reported in some older yocto branches. NVD match clause now includes full tag name including date which is "greater" than tag without additional numbers. Define CVE_VERSION identical to full tag also on master to avoid future CVEs to be reported incorrectly. Put it close to hash so recipe update patch includes this line. (From OE-Core rev: 190dec283b7deeb7ff898d1811924db806509e4a) Signed-off-by: Peter Marko <peter.marko@siemens.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-devtools/json-c/json-c_0.17.bb3
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/recipes-devtools/json-c/json-c_0.17.bb b/meta/recipes-devtools/json-c/json-c_0.17.bb
index b7b596212f..f4b7a32cea 100644
--- a/meta/recipes-devtools/json-c/json-c_0.17.bb
+++ b/meta/recipes-devtools/json-c/json-c_0.17.bb
@@ -9,6 +9,9 @@ SRC_URI = "https://s3.amazonaws.com/json-c_releases/releases/${BP}.tar.gz \
9 " 9 "
10SRC_URI[sha256sum] = "7550914d58fb63b2c3546f3ccfbe11f1c094147bd31a69dcd23714d7956159e6" 10SRC_URI[sha256sum] = "7550914d58fb63b2c3546f3ccfbe11f1c094147bd31a69dcd23714d7956159e6"
11 11
12# NVD uses full tag name including date
13CVE_VERSION = "0.17-20230812"
14
12UPSTREAM_CHECK_URI = "https://github.com/${BPN}/${BPN}/tags" 15UPSTREAM_CHECK_URI = "https://github.com/${BPN}/${BPN}/tags"
13UPSTREAM_CHECK_REGEX = "json-c-(?P<pver>\d+(\.\d+)+)-\d+" 16UPSTREAM_CHECK_REGEX = "json-c-(?P<pver>\d+(\.\d+)+)-\d+"
14 17