]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
json-c: define CVE_VERSION
authorPeter Marko <peter.marko@siemens.com>
Wed, 27 Sep 2023 21:06:32 +0000 (23:06 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 28 Sep 2023 11:37:44 +0000 (12:37 +0100)
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.

Signed-off-by: Peter Marko <peter.marko@siemens.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
meta/recipes-devtools/json-c/json-c_0.17.bb

index b7b596212f8a1cd5fdaac2020c28c316cbbbeb46..f4b7a32cea01197fc956da720a65c3d096c53cec 100644 (file)
@@ -9,6 +9,9 @@ SRC_URI = "https://s3.amazonaws.com/json-c_releases/releases/${BP}.tar.gz \
            "
 SRC_URI[sha256sum] = "7550914d58fb63b2c3546f3ccfbe11f1c094147bd31a69dcd23714d7956159e6"
 
+# NVD uses full tag name including date
+CVE_VERSION = "0.17-20230812"
+
 UPSTREAM_CHECK_URI = "https://github.com/${BPN}/${BPN}/tags"
 UPSTREAM_CHECK_REGEX = "json-c-(?P<pver>\d+(\.\d+)+)-\d+"