summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support/sqlite
diff options
context:
space:
mode:
authorghassaneben <ghassanebb@gmail.com>2022-08-29 16:57:20 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-09-03 13:09:49 +0100
commit51fa77085743463abebb3dd14e8eec428a111df3 (patch)
treeaa6805ed65837206d24cec89b89d6c052001466f /meta/recipes-support/sqlite
parenta6fe1dab21b6487c42f9fae43715337851d2b39b (diff)
downloadpoky-51fa77085743463abebb3dd14e8eec428a111df3.tar.gz
sqlite: fix CVE-2022-35737
Increase the size of loop variables in the printf() implementation to avoid integer overflow on multi-gigabyte string arguments. CVE-2022-35737. This bug fix refers to: CVE-2022-35737 and it's a backport of a fix added in sqlite 3.39.2 (2022-07-21). (From OE-Core rev: fdc82b2314b580c0135c16b7278ebf8786311dec) Signed-off-by: Ghassane Ben El Aattar <ghassaneb.aattar@huawei.com> Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support/sqlite')
-rw-r--r--meta/recipes-support/sqlite/files/0001-sqlite-Increased-the-size-of-loop-variables-in-the-printf-implementation.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/meta/recipes-support/sqlite/files/0001-sqlite-Increased-the-size-of-loop-variables-in-the-printf-implementation.patch b/meta/recipes-support/sqlite/files/0001-sqlite-Increased-the-size-of-loop-variables-in-the-printf-implementation.patch
new file mode 100644
index 0000000000..9e8f039ef6
--- /dev/null
+++ b/meta/recipes-support/sqlite/files/0001-sqlite-Increased-the-size-of-loop-variables-in-the-printf-implementation.patch
@@ -0,0 +1,26 @@
1From ec75530b8d8268cb07d8e476d79e1b0e59492fa2 Mon Sep 17 00:00:00 2001
2From: drh
3Date: Thu, 18 Aug 2022 15:10:46 +0200
4Subject: [PATCH] sqlite: Increase the size of loop variables in the printf() implementation
5
6Increase the size of loop variables in the printf() implementation to avoid integer overflow on multi-gigabyte string arguments. CVE-2022-35737.
7
8This bug fix refers to: CVE-2022-35737 and it's a backport of a fix added in sqlite 3.39.2 (2022-07-21).
9
10Signed-off-by: Ghassane Ben El Aattar ghassaneb.aattar@huawei.com
11
12CVE: CVE-2022-35737
13
14Upstream-Status: Backport [https://www.sqlite.org/src/info/aab790a16e1bdff7]
15---
16 sqlite3.c | 3 ++-
17 1 file changed, 2 insertions(+), 1 deletion(-)
18
19diff --git a/sqlite3.c b/sqlite3.c
20index f867d62..490199a 100644
21--- a/sqlite3.c
22+++ b/sqlite3.c
23@@ -30234,1 +30234,2 @@ static int vxprintf(
24- int i, j, k, n, isnull;
25+ i64 i, j, k, n;
26+ int isnull;