mirror of
https://git.yoctoproject.org/poky
synced 2026-04-21 21:32:12 +02:00
sqlite3: CVE-2023-36191 CLI fault on missing -nonce
Upstream-Status: Backport [https://sqlite.org/src/info/cd24178bbaad4a1d] (From OE-Core rev: 663713b2f95dee1e70f8921ece23b21d84d93805) Signed-off-by: Vijay Anusuri <vanusuri@mvista.com> Signed-off-by: Steve Sakoman <steve@sakoman.com>
This commit is contained in:
committed by
Steve Sakoman
parent
80ecd63cc8
commit
4f488ca49e
37
meta/recipes-support/sqlite/files/CVE-2023-36191.patch
Normal file
37
meta/recipes-support/sqlite/files/CVE-2023-36191.patch
Normal file
@@ -0,0 +1,37 @@
|
||||
From 4e8a0eb4e773b808d9e9697af94319599777169a Mon Sep 17 00:00:00 2001
|
||||
From: larrybr <larrybr@noemail.net>
|
||||
Date: Fri, 2 Jun 2023 12:56:32 +0000
|
||||
Subject: [PATCH] Fix CLI fault on missing -nonce reported by [forum:/info/f8c14a1134|forum post f8c14a1134].
|
||||
|
||||
FossilOrigin-Name: cd24178bbaad4a1dafc3848e7d74240f90030160b5c43c93e1e0e11b073c2df5
|
||||
|
||||
Upstream-Status: Backport [https://sqlite.org/src/info/cd24178bbaad4a1d
|
||||
Upstream commit https://github.com/sqlite/sqlite/commit/4e8a0eb4e773b808d9e9697af94319599777169a]
|
||||
CVE: CVE-2023-36191
|
||||
Signed-off-by: Vijay Anusuri <vanusuri@mvista.com>
|
||||
---
|
||||
shell.c | 8 ++++++--
|
||||
1 file changed, 6 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/shell.c b/shell.c
|
||||
index 0200c0a..fa45d40 100644
|
||||
--- a/shell.c
|
||||
+++ b/shell.c
|
||||
@@ -23163,8 +23163,12 @@ int SQLITE_CDECL wmain(int argc, wchar_t **wargv){
|
||||
}else if( strcmp(z,"-bail")==0 ){
|
||||
bail_on_error = 1;
|
||||
}else if( strcmp(z,"-nonce")==0 ){
|
||||
- free(data.zNonce);
|
||||
- data.zNonce = strdup(argv[++i]);
|
||||
+ if( data.zNonce ) free(data.zNonce);
|
||||
+ if( i+1 < argc ) data.zNonce = strdup(argv[++i]);
|
||||
+ else{
|
||||
+ data.zNonce = 0;
|
||||
+ break;
|
||||
+ }
|
||||
}else if( strcmp(z,"-safe")==0 ){
|
||||
/* no-op - catch this on the second pass */
|
||||
}
|
||||
--
|
||||
2.25.1
|
||||
|
||||
@@ -6,6 +6,7 @@ LIC_FILES_CHKSUM = "file://sqlite3.h;endline=11;md5=786d3dc581eff03f4fd9e4a77ed0
|
||||
SRC_URI = "http://www.sqlite.org/2022/sqlite-autoconf-${SQLITE_PV}.tar.gz \
|
||||
file://0001-sqlite-Increased-the-size-of-loop-variables-in-the-printf-implementation.patch \
|
||||
file://CVE-2022-46908.patch \
|
||||
file://CVE-2023-36191.patch \
|
||||
"
|
||||
SRC_URI[sha256sum] = "5af07de982ba658fd91a03170c945f99c971f6955bc79df3266544373e39869c"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user