Skip to contentSkip to conversation

msgpack-c: fix upstream check

PATCH In review Peter Marko 1 participant 5 messages Sep 13

lore
Share & tools
lore
#0 lore raw

PATCH 1/4 msgpack-c: fix upstream check

From: Peter Marko <[email protected]>

By default it picks the highest version, which for this repository is for msgpack-cpp. Set GITTAGREGEX to pick msgpack-c tag.

---
 meta-oe/recipes-devtools/msgpack/msgpack-c_6.1.0.bb | 2 ++
 1 file changed, 2 insertions(+)
meta-oe/recipes-devtools/msgpack/msgpack-c_6.1.0.bb +2 -0
index b7f3625c2a..1061c37345 100644
@@ -10,6 +10,8 @@ LIC_FILES_CHKSUM = "file://NOTICE;md5=7a858c074723608e08614061dc044352 \
 SRC_URI = "git://github.com/msgpack/msgpack-c;branch=c_master;protocol=https"
 SRCREV = "445880108a1d171f755ff6ac77e03fbebbb23729"
 
+UPSTREAM_CHECK_GITTAGREGEX = "c-(?P<pver>\d+(\.\d+)+)"
+
 inherit cmake pkgconfig
 
 EXTRA_OECMAKE += "-DMSGPACK_BUILD_TESTS=off"
#1 lore raw

PATCH 2/4 msgpack-c: upgrade 6.1.0 -> 7.0.2

From: Peter Marko <[email protected]>

Handles CVE-2026-72854 (in 7.0.2).

Release notes:
* https://github.com/msgpack/msgpack-c/releases/tag/c-7.0.0

    Refine CI (#1152)
  << breaking changes >>
    Updated cmake minimum required to 3.5-4.0 (#1160)

* https://github.com/msgpack/msgpack-c/releases/tag/c-7.0.1
Set INSTALL_INTERFACE to CMAKE_INSTALL_INCLUDEDIR (#1177)

* https://github.com/msgpack/msgpack-c/releases/tag/c-7.0.2
Fix integer overflow on msgpack_unpacker_expand_buffer(). (#1182)

---
 .../msgpack/{msgpack-c_6.1.0.bb => msgpack-c_7.0.2.bb}          | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta-oe/recipes-devtools/msgpack/{msgpack-c_6.1.0.bb => msgpack-c_7.0.2.bb} (93%)
meta-oe/recipes-devtools/msgpack/msgpack-c_7.0.2.bb renamed from meta-oe/recipes-devtools/msgpack/msgpack-c_6.1.0.bb +1 -1
similarity index 93%
rename from meta-oe/recipes-devtools/msgpack/msgpack-c_6.1.0.bb
rename to meta-oe/recipes-devtools/msgpack/msgpack-c_7.0.2.bb
index 1061c37345..b5ff5d9780 100644
@@ -8,7 +8,7 @@ LIC_FILES_CHKSUM = "file://NOTICE;md5=7a858c074723608e08614061dc044352 \
                    "
 
 SRC_URI = "git://github.com/msgpack/msgpack-c;branch=c_master;protocol=https"
-SRCREV = "445880108a1d171f755ff6ac77e03fbebbb23729"
+SRCREV = "e17beb371b59459a13b48e166a11e123bda5bf93"
 
 UPSTREAM_CHECK_GITTAGREGEX = "c-(?P<pver>\d+(\.\d+)+)"
 
#2 lore raw

RE: [meta-oe][PATCH 2/4] msgpack-c: upgrade 6.1.0 -> 7.0.2

Quoted 40 lines

-----Original Message-----
From: Marko, Peter (FT D EU SK BFS1) <[email protected]>
Sent: Sunday, September 13, 2026 5:23 PM
To: [email protected]
Cc: Marko, Peter (FT D EU SK BFS1) <[email protected]>
Subject: [meta-oe][PATCH 2/4] msgpack-c: upgrade 6.1.0 -> 7.0.2

From: Peter Marko <[email protected]>

Handles CVE-2026-72854 (in 7.0.2).

Release notes:
* https://github.com/msgpack/msgpack-c/releases/tag/c-7.0.0

    Refine CI (#1152)
  << breaking changes >>
    Updated cmake minimum required to 3.5-4.0 (#1160)

* https://github.com/msgpack/msgpack-c/releases/tag/c-7.0.1
Set INSTALL_INTERFACE to CMAKE_INSTALL_INCLUDEDIR (#1177)

* https://github.com/msgpack/msgpack-c/releases/tag/c-7.0.2
Fix integer overflow on msgpack_unpacker_expand_buffer(). (#1182)

---
 .../msgpack/{msgpack-c_6.1.0.bb => msgpack-c_7.0.2.bb}          | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta-oe/recipes-devtools/msgpack/{msgpack-c_6.1.0.bb => msgpack-

c_7.0.2.bb} (93%)

meta- renamed from meta-oe/recipes-devtools/msgpack/msgpack-c_6.1.0.bb +0 -0

oe/recipes-devtools/msgpack/msgpack-c_7.0.2.bb similarity index 93%
rename from meta-oe/recipes-devtools/msgpack/msgpack-c_6.1.0.bb rename to meta-oe/recipes-devtools/msgpack/msgpack-c_7.0.2.bb index 1061c37345..b5ff5d9780 100644

meta-oe/recipes-devtools/msgpack/msgpack-c_7.0.2.bb LIC_FILES_CHKSUM = · line 11

Quoted 4 lines
meta-oe/recipes-devtools/msgpack/msgpack-c_7.0.2.bb renamed from meta-oe/recipes-devtools/msgpack/msgpack-c_6.1.0.bb +0 -0
@@ -8,7 +8,7 @@ LIC_FILES_CHKSUM =
 "file://NOTICE;md5=7a858c074723608e08614061dc044352 \
                    "
 
 SRC_URI = "git://github.com/msgpack/msgpack-c;branch=c_master;protocol=https"

I forgot to add ";tag=" to SRC_URI, v2 (just for this patch) incoming.

Peter

Quoted 5 lines
meta-oe/recipes-devtools/msgpack/msgpack-c_7.0.2.bb renamed from meta-oe/recipes-devtools/msgpack/msgpack-c_6.1.0.bb +1 -1
-SRCREV = "445880108a1d171f755ff6ac77e03fbebbb23729"
+SRCREV = "e17beb371b59459a13b48e166a11e123bda5bf93"
 
 UPSTREAM_CHECK_GITTAGREGEX = "c-(?P<pver>\d+(\.\d+)+)"
#3 lore raw

PATCH 3/4 msgpack-cpp: fix upstream check

In reply to Peter Marko

From: Peter Marko <[email protected]>

Without any prefix/suffix, it picks the highest version-like string. Set REGEX to pick msgpack-cpp version.

---
 meta-oe/recipes-devtools/msgpack/msgpack-cpp_8.0.0.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-oe/recipes-devtools/msgpack/msgpack-cpp_8.0.0.bb +1 -1
index 87f11d279b..0d741c5212 100644
@@ -11,7 +11,7 @@ SRC_URI = "https://github.com/msgpack/msgpack-c/releases/download/cpp-${PV}/msgp
 SRC_URI[sha256sum] = "4a3c0c0ac55ef4456c2d0b93c21b5d105aa3a8f21ef8fa9758550feaf989b92f"
 
 UPSTREAM_CHECK_URI = "https://github.com/msgpack/msgpack-c/releases"
-UPSTREAM_CHECK_REGEX = "(?P<pver>\d+(\.\d+)+)"
+UPSTREAM_CHECK_REGEX = "(?P<pver>\d+(\.\d+)+) C++"
 
 S = "${UNPACKDIR}/msgpack-cxx-${PV}"
 
#4 lore raw

PATCH 4/4 msgpack-cpp: upgrade 8.0.0 -> 9.0.0

In reply to Peter Marko

From: Peter Marko <[email protected]>

Release notes:
* https://github.com/msgpack/msgpack-c/releases/tag/cpp-9.0.0

2026-08-25 version 9.0.0

Add regression tests for the fixes below. (#1183)
Fix ext_ref comparison operators ignoring the last payload byte. (#1183)
Fix out-of-bounds write on self-move-assignment of the create object visitor. (#1183)
Fix broken array_ref<T[N]> comparison operators. (#1183)
Fix heap buffer overflow in vrefbuffer::migrate() caused by a wrong growth check. (#1183)
Fix v1 unpacker not applying str/bin/ext size limits on the reference path. (#1183)
Fix x3 parser treating uint8 values as negative integers. (#1183)
Fix double free / use-after-free in zone::swap() (C++03 only). (#1183)
Fix use-after-free from wrong member destruction order in zone move-assignment. (#1183)
Fix use-after-free after moving an unpacker (dangling referenced buffer hook). (#1183)
Fix out-of-bounds read converting a short STR into std::array<char, N> / <unsigned char, N>. (#1183) Fix out-of-bounds read and null dereference converting an array whose size differs from the tuple arity. (#1183) Fix null pointer dereference converting an empty array into a C array T[N]. (#1183)
Fix integer overflow in the unpacker buffer expansion size arithmetic. (#1183)

<< breaking changes >>

Fix ext32 max size truncation on 64bit by widening visit_ext size to size_t. (#1183)
* If you have a custom visitor that implements visit_ext(), widen its size parameter from uint32_t to std::size_t:
Before: bool visit_ext(const char* v, uint32_t size)
After : bool visit_ext(const char* v, std::size_t size)

---
 .../msgpack/{msgpack-cpp_8.0.0.bb => msgpack-cpp_9.0.0.bb}      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta-oe/recipes-devtools/msgpack/{msgpack-cpp_8.0.0.bb => msgpack-cpp_9.0.0.bb} (90%)
meta-oe/recipes-devtools/msgpack/msgpack-cpp_9.0.0.bb renamed from meta-oe/recipes-devtools/msgpack/msgpack-cpp_8.0.0.bb +1 -1
similarity index 90%
rename from meta-oe/recipes-devtools/msgpack/msgpack-cpp_8.0.0.bb
rename to meta-oe/recipes-devtools/msgpack/msgpack-cpp_9.0.0.bb
index 0d741c5212..95e8bfe71e 100644
@@ -8,7 +8,7 @@ LIC_FILES_CHKSUM = "file://NOTICE;md5=7a858c074723608e08614061dc044352 \
                    "
 
 SRC_URI = "https://github.com/msgpack/msgpack-c/releases/download/cpp-${PV}/msgpack-cxx-${PV}.tar.gz"
-SRC_URI[sha256sum] = "4a3c0c0ac55ef4456c2d0b93c21b5d105aa3a8f21ef8fa9758550feaf989b92f"
+SRC_URI[sha256sum] = "303d3a7321aee65eb9450db8a6c973954e00af34b88ba0c0aca236bc50bfb8a9"
 
 UPSTREAM_CHECK_URI = "https://github.com/msgpack/msgpack-c/releases"
 UPSTREAM_CHECK_REGEX = "(?P<pver>\d+(\.\d+)+) C++"