lmdb: upgrade 0.9.31 -> 0.9.35

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

Signed-off-by: Liu Yiding <liuyd.fnst@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Liu Yiding 2026-02-10 16:11:57 +08:00 committed by Khem Raj
parent 48dc68c366
commit bc6370efb6
No known key found for this signature in database
GPG Key ID: BB053355919D3314
2 changed files with 2 additions and 34 deletions

View File

@ -1,31 +0,0 @@
From 94ca20e5aed5d8730e045bb945fa3485b28a7981 Mon Sep 17 00:00:00 2001
From: Gyorgy Sarvari <skandigraun@gmail.com>
Date: Tue, 6 Jan 2026 20:52:25 +0000
Subject: [PATCH] ITS#10421 mdb_load: check for malicious input
From: Howard Chu <hyc@openldap.org>
CVE: CVE-2026-22185
Upstream-Status: Backport [https://github.com/LMDB/lmdb/commit/8e1fda85532a3c74276df38a42d234dcdfa1e40d]
Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
---
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? */

View File

@ -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