Compare commits

..
Author SHA1 Message Date
openeuler-ci-bot 2ec8d3a3e9 !107 修复漏洞CVE-2023-7104
From: @Jeremyzz 
Reviewed-by: @dillon_chen 
Signed-off-by: @dillon_chen
2024-01-09 09:04:16 +00:00
mazhao 0fa69075fc fix the CVE-2023-7104
Signed-off-by: mazhao <mazhao12@huawei.com>
2024-01-08 16:17:51 +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
2 changed files with 50 additions and 10 deletions
+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
+5 -10
View File
@@ -21,6 +21,7 @@ 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-7104.patch
BuildRequires: gcc autoconf tcl tcl-devel
BuildRequires: ncurses-devel readline-devel glibc-devel
@@ -69,6 +70,7 @@ This contains man files and HTML files for the using of sqlite.
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1
rm -f %{name}-doc-%{extver}/sqlite.css~ || :
@@ -115,10 +117,6 @@ export MALLOC_CHECK_=3
%else
rm test/csv01.test
%endif
%ifarch loongarch64
rm -rf test/thread1.test
rm -rf test/thread2.test
%endif
make test
%endif # with check
@@ -143,8 +141,8 @@ make test
%{_mandir}/man*/*
%changelog
* Fri Jan 13 2023 Wenlong Zhang<zhangwenlong@loongson.cn> - 3.37.2-5
- remove fail testcase for loongarch
* Wed Jan 3 2024 mazhao <mazhao12@huawei.com> - 3.37.2-5
- fix the CVE-2023-7104
* Wed Dec 14 2022 zhuwentao <zhuwentao5@huawei.com> - 3.37.2-4
- fix the CVE-2022-46908
@@ -167,9 +165,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.
@@ -271,4 +266,4 @@ make test
- ID:CVE-2018-20346
- SUG:NA
- DESC:CVE-2018-20346
- Package init
- Package init