Skip to contentSkip to conversation

lmdb: upgrade 0.9.31 -> 0.9.35

PATCH New Liu Yiding 1 participant 1 message Feb 10

lore
Share & tools
lore

Liu Yiding

author
#0 lore raw

PATCH 1/1 lmdb: upgrade 0.9.31 -> 0.9.35

Drop CVE-2026-22185.patch as it was merged upstream

---
 .../lmdb/files/CVE-2026-22185.patch           | 31 -------------------
 .../lmdb/{lmdb_0.9.31.bb => lmdb_0.9.35.bb}   |  5 ++-
 2 files changed, 2 insertions(+), 34 deletions(-)
 delete mode 100644 meta-oe/recipes-dbs/lmdb/files/CVE-2026-22185.patch
 rename meta-oe/recipes-dbs/lmdb/{lmdb_0.9.31.bb => lmdb_0.9.35.bb} (91%)
meta-oe/recipes-dbs/lmdb/files/CVE-2026-22185.patch deleted +0 -31
deleted file mode 100644
index 6c85b2b8ed..0000000000
@@ -1,31 +0,0 @@
-From 94ca20e5aed5d8730e045bb945fa3485b28a7981 Mon Sep 17 00:00:00 2001
-From: Gyorgy Sarvari <[email protected]>
-Date: Tue, 6 Jan 2026 20:52:25 +0000
-Subject: [PATCH] ITS#10421 mdb_load: check for malicious input
-
-From: Howard Chu <[email protected]>
-
-CVE: CVE-2026-22185
-Upstream-Status: Backport [https://github.com/LMDB/lmdb/commit/8e1fda85532a3c74276df38a42d234dcdfa1e40d]
-Signed-off-by: Gyorgy Sarvari <[email protected]>
----
- libraries/liblmdb/mdb_load.c | 6 ++++++
- 1 file changed, 6 insertions(+)
-
-diff --git a/libraries/liblmdb/mdb_load.c b/libraries/liblmdb/mdb_load.c
-index d2a3cec..7eccf40 100644
---- a/libraries/liblmdb/mdb_load.c
-+++ b/libraries/liblmdb/mdb_load.c
-@@ -208,6 +208,12 @@ badend:
- 
- 	c1 = buf->mv_data;
- 	len = strlen((char *)c1);
-+	if (!len) {
-+		/* This can only happen with an intentionally invalid input
-+		 * with a NUL byte after the leading SPACE
-+		 */
-+		goto badend;
-+	}
- 	l2 = len;
- 
- 	/* Is buffer too short? */
meta-oe/recipes-dbs/lmdb/lmdb_0.9.35.bb renamed from meta-oe/recipes-dbs/lmdb/lmdb_0.9.31.bb +2 -3
similarity index 91%
rename from meta-oe/recipes-dbs/lmdb/lmdb_0.9.31.bb
rename to meta-oe/recipes-dbs/lmdb/lmdb_0.9.35.bb
index 29bfbb81fa..36f2056914 100644
@@ -8,14 +8,13 @@ HOMEPAGE = "https://symas.com/lightning-memory-mapped-database/"
 LICENSE = "OLDAP-2.8"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=153d07ef052c4a37a8fac23bc6031972"
 
-SRC_URI = "git://github.com/LMDB/lmdb.git;nobranch=1;protocol=https \
+SRC_URI = "git://github.com/LMDB/lmdb.git;nobranch=1;protocol=https;tag=LMDB_${PV} \
            file://run-ptest \
            file://0001-Makefile-use-libprefix-instead-of-libdir.patch \
            file://0001-make-set-soname-on-liblmdb.patch;patchdir=../.. \
-           file://CVE-2026-22185.patch;striplevel=3 \
            "
 
-SRCREV = "ce201088de95d26fc0da36ba805bf2ddc2ba74ff"
+SRCREV = "69087ced3cb6082f7dcfb4fc2dcaa3b68a7e2e8c"
 
 inherit ptest
 
Signature · 1 line
2.43.0