Compare commits

..
Author SHA1 Message Date
openeuler-ci-bot 81ab8dd8e0 !102 [sync] PR-99: fix issue CVE-2023-7104
From: @openeuler-sync-bot 
Reviewed-by: @dillon_chen 
Signed-off-by: @dillon_chen
2024-01-08 09:51:48 +00:00
mazhao f928837efd fix the CVE-2023-7104
Signed-off-by: mazhao <mazhao12@huawei.com>
(cherry picked from commit a4cd646a0c)
2024-01-08 15:05:36 +08:00
openeuler-ci-bot a23cb2b2f4 !95 [sync] PR-92: fix issue CVE-2023-36191
From: @openeuler-sync-bot 
Reviewed-by: @dillon_chen 
Signed-off-by: @dillon_chen
2023-08-08 07:03:19 +00:00
zwtmichael 8ac659ee2c fix CVE-2023-36191
Signed-off-by: zwtmichael <zhuwentao5@huawei.com>
(cherry picked from commit d5a9995a67)
2023-08-08 11:40:55 +08:00
openeuler-ci-bot 49e718bbb3 !90 [sync] PR-89: [sync] PR-87: remove fail testcase for loongarch
From: @openeuler-sync-bot 
Reviewed-by: @dillon_chen 
Signed-off-by: @dillon_chen
2023-06-16 09:56:08 +00:00
Wenlong Zhang 396b39eeac remove fail testcase for loongarch
(cherry picked from commit 103979d41c)
(cherry picked from commit af95bd75d2)
2023-06-16 17:55:10 +08:00
openeuler-ci-bot 31f03aced1 !84 [sync] PR-83: Fix CVE-2022-46908
From: @openeuler-sync-bot 
Reviewed-by: @zqq_ddd, @wbq_sky 
Signed-off-by: @wbq_sky
2022-12-19 09:04:53 +00:00
zwtmichael 330f7666b9 Fix safe mode authorizer callback to reject disallowed UDFs
Signed-off-by: zwtmichael <zhuwentao5@huawei.com>
(cherry picked from commit d5bf7b294a)
2022-12-19 11:45:24 +08:00
openeuler-ci-bot cdcec9e62b !82 [sync] PR-80: fix build problem
From: @openeuler-sync-bot 
Reviewed-by: @wbq_sky 
Signed-off-by: @wbq_sky
2022-09-20 02:54:57 +00:00
zwtmichael cd34fe688d fix build problem
Signed-off-by: zwtmichael <zhuwentao5@huawei.com>
(cherry picked from commit 4287815f16)
2022-09-15 16:38:26 +08:00
openeuler-ci-bot 06247f0077 !72 [sync] PR-71: fix integer overflow on gigabyte string
From: @openeuler-sync-bot 
Reviewed-by: @wbq_sky 
Signed-off-by: @wbq_sky
2022-09-05 11:44:36 +00:00
zwtmichael 4655f3e588 fix integer overflow on multi-gigabyte string
Signed-off-by: zwtmichael <zhuwentao5@huawei.com>
(cherry picked from commit 76b8dd730a)
2022-09-05 18:48:14 +08:00
zwtmichael 9f271ed2e2 update to 3.37.2
Signed-off-by: zwtmichael <zhuwentao5@huawei.com>
(cherry picked from commit 7d7e9e3d73)
2022-09-05 18:48:14 +08:00
openeuler-ci-bot 106d6690e7 !70 [sync] PR-65: update to 3.37.2
From: @openeuler-sync-bot 
Reviewed-by: @wbq_sky 
Signed-off-by: @wbq_sky
2022-09-01 10:52:32 +00:00
zwtmichael 205b20707e update to 3.37.2
Signed-off-by: zwtmichael <zhuwentao5@huawei.com>
(cherry picked from commit d8002ef402)
2022-09-01 09:12:22 +08:00
openeuler-ci-bot 9b54b62589 !69 [sync] PR-60: 修复 CVE-2022-35737
From: @openeuler-sync-bot 
Reviewed-by: @wbq_sky 
Signed-off-by: @wbq_sky
2022-08-31 15:26:27 +00:00
liusirui fd5752dc3f fix CVE-2022-35737
(cherry picked from commit 419bd31973)
2022-08-31 21:29:25 +08:00
openeuler-ci-bot 13bf15141f !56 [sync] PR-54: 【轻量级 PR】:fix spec changelog date error
From: @openeuler-sync-bot 
Reviewed-by: @bzhaoop 
Signed-off-by: @bzhaoop
2022-06-14 01:36:34 +00:00
jiangxinyu a5e891c423 fix spec changelog date error
(cherry picked from commit a5ad049268)
2022-06-14 08:52:58 +08:00
openeuler-ci-bot 10c3caf88d !50 [sync] PR-49: Fix the CVE-2021-36690.
From: @openeuler-sync-bot
Reviewed-by: @bzhaoop
Signed-off-by: @bzhaoop
2021-12-02 09:31:54 +00:00
wbq_sky 1c3ff49bdc fix the CVE-2021-36690
Signed-off-by: wbq_sky <wangbingquan@huawei.com>
(cherry picked from commit 281ace3ce4)
2021-11-30 15:10:24 +08:00
openeuler-ci-bot e9c98a3a01 !48 Update the sqlite to 3.36
From: @wbq_sky
Reviewed-by: @bzhaoop
Signed-off-by: @bzhaoop
2021-11-30 03:25:11 +00:00
wbq_sky a37dc54997 update the sqlite to 3.36
Signed-off-by: wbq_sky <wangbingquan@huawei.com>
2021-11-25 15:59:33 +08:00
openeuler-ci-bot 3bd1f68830 !44 [sync] PR-39: Fix a problem caused by using an SQL variable in an over clause within a trigger.
From: @openeuler-sync-bot
Reviewed-by: @bzhaoop
Signed-off-by: @bzhaoop
2021-09-27 03:58:50 +00:00
wbq_sky 77544d0ad8 fix the null reference in the over clause within trigger
Signed-off-by: wbq_sky <wangbingquan@huawei.com>
(cherry picked from commit b5acf1da61)
2021-09-27 08:58:28 +08:00
openeuler-ci-bot 7585329627 !42 [sync] PR-38: fix the problem of the infinite loop in trim function.
From: @openeuler-sync-bot
Reviewed-by: @bzhaoop
Signed-off-by: @bzhaoop
2021-09-27 00:43:11 +00:00
wbq_sky d043bf5376 fix the infinite loop in the trim function while the pattern is well formed.
Signed-off-by: wbq_sky <wangbingquan@huawei.com>
(cherry picked from commit d81186e427)
2021-09-26 17:05:30 +08:00
3 changed files with 88 additions and 4 deletions
+32
View File
@@ -0,0 +1,32 @@
From 1b2901722e5de3ef8d29edb4481327e48bd3363c Mon Sep 17 00:00:00 2001
From: zwtmichael <zhuwentao5@huawei.com>
Date: Mon, 7 Aug 2023 15:10:32 +0800
Subject: [PATCH] fix segmentation violation
Signed-off-by: zwtmichael <zhuwentao5@huawei.com>
---
src/shell.c.in | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/src/shell.c.in b/src/shell.c.in
index 543141c..d278988 100644
--- a/src/shell.c.in
+++ b/src/shell.c.in
@@ -11469,8 +11469,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.34.1.windows.1
+45
View File
@@ -0,0 +1,45 @@
it From a756d158b3e55831975feb45b753ba499d2adeda Mon Sep 17 00:00:00 2001
From: mazhao <mazhao12@huawei.com>
Date: Wed, 3 Jan 2024 12:00:45 +0800
Subject: [PATCH] Fix a buffer overread in the sessions extension that could
occur when processing a corrupt changeset.
Signed-off-by: mazhao <mazhao12@huawei.com>
---
ext/session/sqlite3session.c | 18 +++++++++++-------
1 file changed, 11 insertions(+), 7 deletions(-)
diff --git a/ext/session/sqlite3session.c b/ext/session/sqlite3session.c
index a892804..72ad427 100644
--- a/ext/session/sqlite3session.c
+++ b/ext/session/sqlite3session.c
@@ -3050,15 +3050,19 @@ static int sessionReadRecord(
}
}
if( eType==SQLITE_INTEGER || eType==SQLITE_FLOAT ){
- sqlite3_int64 v = sessionGetI64(aVal);
- if( eType==SQLITE_INTEGER ){
- sqlite3VdbeMemSetInt64(apOut[i], v);
+ if( (pIn->nData-pIn->iNext)<8 ){
+ rc = SQLITE_CORRUPT_BKPT;
}else{
- double d;
- memcpy(&d, &v, 8);
- sqlite3VdbeMemSetDouble(apOut[i], d);
+ sqlite3_int64 v = sessionGetI64(aVal);
+ if( eType==SQLITE_INTEGER ){
+ sqlite3VdbeMemSetInt64(apOut[i], v);
+ }else{
+ double d;
+ memcpy(&d, &v, 8);
+ sqlite3VdbeMemSetDouble(apOut[i], d);
+ }
+ pIn->iNext += 8;
}
- pIn->iNext += 8;
}
}
}
--
2.34.1
+11 -4
View File
@@ -6,7 +6,7 @@
Name: sqlite
Version: 3.37.2
Release: 5
Release: 7
Summary: Embeded SQL database
License: Public Domain
URL: http://www.sqlite.org/
@@ -21,6 +21,8 @@ Patch3: 0003-CVE-2022-35737.patch
Patch4: 0004-fix-memory-problem-in-the-rtree-test-suite.patch
Patch5: 0005-fix-integer-overflow-on-gigabyte-string.patch
Patch6: 0006-CVE-2022-46908.patch
Patch7: 0007-CVE-2023-36191.patch
Patch8: 0008-CVE-2023-7104.patch
BuildRequires: gcc autoconf tcl tcl-devel
BuildRequires: ncurses-devel readline-devel glibc-devel
@@ -69,6 +71,8 @@ This contains man files and HTML files for the using of sqlite.
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1
%patch8 -p1
rm -f %{name}-doc-%{extver}/sqlite.css~ || :
@@ -143,6 +147,12 @@ make test
%{_mandir}/man*/*
%changelog
* Wed Jan 3 2024 mazhao <mazhao12@huawei.com> - 3.37.2-7
- fix the CVE-2023-7104
* Mon Aug 7 2023 zhuwentao <zhuwentao5@huawei.com> - 3.37.2-6
- fix the CVE-2023-36191
* Fri Jan 13 2023 Wenlong Zhang<zhangwenlong@loongson.cn> - 3.37.2-5
- remove fail testcase for loongarch
@@ -167,9 +177,6 @@ make test
* Fri Nov 25 2021 wbq_sky <wangbingquan@huawei.com> - 3.36.0-1
- update to 3.36.0.
* Fri Sep 26 2021 wbq_sky <wangbingquan@huawei.com> - 3.34.0-4
- fix the uninitialized value used in pattern match.
* Fri Sep 3 2021 wbq_sky <wangbingquan@huawei.com> - 3.34.0-3
- fix the null reference in the tigger statement.