Compare commits

..
Author SHA1 Message Date
openeuler-ci-bot 31498bc42c !29 update source0 url in spec file
Merge pull request !29 from lihaotian/new_LTS
2020-09-03 15:48:51 +08:00
lihaotian9 d5276129ec Update the source0 url in spec file 2020-09-03 14:19:35 +08:00
openeuler-ci-bot 5df5511783 !26 update package to 3.32.3
Merge pull request !26 from Markeryang/openEuler-20.03-LTS
2020-08-25 19:16:17 +08:00
Markeryang d6b2326d7d update package to 3.32.3
update package to 3.32.3
2020-08-25 15:29:41 +08:00
zhanliwen 6339a6cc8a update to 3.32.3 2020-08-25 15:19:07 +08:00
openeuler-ci-bot 96193cf35b !24 fix CVE-2020-13871
Merge pull request !24 from Markeryang/openEuler-20.03-LTS
2020-08-04 16:00:02 +08:00
Markeryang 535b7d332e update sqlite.spec. 2020-08-04 15:14:29 +08:00
Markeryang b5718f9b04 Fix CVE-2020-13871
Fix CVE-2020-13871
2020-08-04 15:03:24 +08:00
openeuler-ci-bot c8f752305a !23 fix CVE-2020-13631 CVE-2020-15358
Merge pull request !23 from Markeryang/openEuler-20.03-LTS
2020-08-04 14:49:29 +08:00
Markeryang a97ba4bafc rename 0006-sqlite-no-malloc-usable-size.patch to 0007-sqlite-no-malloc-usable-size.patch. 2020-08-04 14:28:13 +08:00
Markeryang fdc60426fe rename 0005-Fix-CVE-2020-13631.patch to 0006-Fix-CVE-2020-13631.patch. 2020-08-04 14:27:50 +08:00
Markeryang 0bc5c71e92 rename 0004-Fix-CVE-2020-15358.patch to 0005-Fix-CVE-2020-15358.patch. 2020-08-04 14:27:27 +08:00
Markeryang a8a4f7d036 rename 0003-Fix-CVE-2020-11656.patch to 0004-Fix-CVE-2020-11656.patch. 2020-08-04 14:26:24 +08:00
Markeryang 1d44d96f90 rename 0002-Fix-CVE-2020-11655.patch to 0003-Fix-CVE-2020-11655.patch. 2020-08-04 14:25:00 +08:00
Markeryang fd617774e5 rename 0001-0002-Fix-CVE-2020-9327.patch to 0002-Fix-CVE-2020-9327.patch. 2020-08-04 14:24:33 +08:00
Markeryang 54a77ef1a9 rename 0000-0001-Fix-CVE-2020-9327.patch to 0001-Fix-CVE-2020-9327.patch. 2020-08-04 14:24:05 +08:00
Markeryang 0dd031ef19 update sqlite.spec. 2020-08-04 14:23:47 +08:00
Markeryang aaa156267f update sqlite.spec. 2020-08-04 09:49:22 +08:00
Markeryang dbf2fe2ade update sqlite.spec. 2020-08-04 09:02:40 +08:00
Markeryang 1c9ec00e1b update sqlite.spec. 2020-08-04 08:59:25 +08:00
Markeryang 84a4960c12 rename 6003-Fix-CVE-2020-11656.patch to 0003-Fix-CVE-2020-11656.patch. 2020-08-04 08:55:51 +08:00
Markeryang 2e62e8b4d4 rename 6002-Fix-CVE-2020-11655.patch to 0002-Fix-CVE-2020-11655.patch. 2020-08-04 08:55:30 +08:00
Markeryang 2573148f02 rename 6001-0002-Fix-CVE-2020-9327.patch to 0001-0002-Fix-CVE-2020-9327.patch. 2020-08-04 08:55:03 +08:00
Markeryang 47c8e1aa97 rename 0000-sqlite-no-malloc-usable-size.patch to 0006-sqlite-no-malloc-usable-size.patch. 2020-08-04 08:54:38 +08:00
Markeryang b6ff332de2 rename 6000-0001-Fix-CVE-2020-9327.patch to 0000-0001-Fix-CVE-2020-9327.patch. 2020-08-04 08:54:13 +08:00
Markeryang ae3d919fb4 update sqlite.spec. 2020-08-03 17:52:42 +08:00
Markeryang f461942ca6 update sqlite.spec. 2020-08-03 17:52:05 +08:00
Markeryang a9fb3a7181 add 0005-Fix-CVE-2020-13631.patch.
add 0005-Fix-CVE-2020-13631.patch.
2020-08-03 17:48:38 +08:00
Markeryang f279132e49 add 0004-Fix-CVE-2020-15358.patch.
0004-Fix-CVE-2020-15358.patch
2020-08-03 17:47:32 +08:00
openeuler-ci-bot 920187b9f1 !16 update sqlite to 3310100
Merge pull request !16 from lfl/master
2020-05-13 14:40:36 +08:00
wubo009 c6c12b31bc update pkg in lts branch 2020-05-12 23:06:17 +08:00
3 changed files with 37 additions and 99 deletions
-69
View File
@@ -1,69 +0,0 @@
Index: sqlite-src-3320300/src/select.c
==================================================================
--- sqlite-src-3320300/src/select.c
+++ sqlite-src-3320300/src/select.c
@@ -5613,11 +5613,13 @@
** within the HAVING expression with a constant "1".
*/
static int havingToWhereExprCb(Walker *pWalker, Expr *pExpr){
if( pExpr->op!=TK_AND ){
Select *pS = pWalker->u.pSelect;
- if( sqlite3ExprIsConstantOrGroupBy(pWalker->pParse, pExpr, pS->pGroupBy) ){
+ if( sqlite3ExprIsConstantOrGroupBy(pWalker->pParse, pExpr, pS->pGroupBy)
+ && ExprAlwaysFalse(pExpr)==0
+ ){
sqlite3 *db = pWalker->pParse->db;
Expr *pNew = sqlite3Expr(db, TK_INTEGER, "1");
if( pNew ){
Expr *pWhere = pS->pWhere;
SWAP(Expr, *pNew, *pExpr);
Index: sqlite-src-3320300/test/having.test
==================================================================
--- sqlite-src-3320300/test/having.test
+++ sqlite-src-3320300/test/having.test
@@ -63,12 +63,12 @@
"SELECT a, sum(b) FROM t1 WHERE a=2 GROUP BY a HAVING sum(b)>5"
3 "SELECT a, sum(b) FROM t1 GROUP BY a COLLATE binary HAVING a=2"
"SELECT a, sum(b) FROM t1 WHERE a=2 GROUP BY a COLLATE binary"
- 5 "SELECT a, sum(b) FROM t1 GROUP BY a COLLATE binary HAVING 0"
- "SELECT a, sum(b) FROM t1 WHERE 0 GROUP BY a COLLATE binary"
+ 5 "SELECT a, sum(b) FROM t1 GROUP BY a COLLATE binary HAVING 1"
+ "SELECT a, sum(b) FROM t1 WHERE 1 GROUP BY a COLLATE binary"
6 "SELECT count(*) FROM t1,t2 WHERE a=c GROUP BY b, d HAVING b=d"
"SELECT count(*) FROM t1,t2 WHERE a=c AND b=d GROUP BY b, d"
7 {
@@ -151,8 +151,28 @@
#
set ::nondeter_ret 0
do_execsql_test 4.3 {
SELECT a, sum(b) FROM t3 WHERE nondeter(a) GROUP BY a
} {1 4 2 2}
+
+#-------------------------------------------------------------------------
+reset_db
+do_execsql_test 5.0 {
+ CREATE TABLE t1(a, b);
+ CREATE TABLE t2(x, y);
+ INSERT INTO t1 VALUES('a', 'b');
+}
+
+# The WHERE clause (a=2), uses an aggregate column from the outer query.
+# If the HAVING term (0) is moved into the WHERE clause in this case,
+# SQLite would at one point optimize (a=2 AND 0) to simply (0). Which
+# is logically correct, but happened to cause problems in aggregate
+# processing for the outer query. This test case verifies that those
+# problems are no longer present.
+do_execsql_test 5.1 {
+ SELECT min(b), (
+ SELECT x FROM t2 WHERE a=2 GROUP BY y HAVING 0
+ ) FROM t1;
+} {b {}}
finish_test
+37 -26
View File
@@ -3,21 +3,21 @@
%global extver 3320300
%global tcl_version 8.6
%global tcl_sitearch %{_libdir}/tcl%{tcl_version}
%global year 2020
Name: sqlite
Version: 3.32.3
Release: 3
Release: 2
Summary: Embeded SQL database
License: Public Domain
URL: http://www.sqlite.org/
Source0: http://www.sqlite.org/2020/sqlite-src-%{extver}.zip
Source1: http://www.sqlite.org/2020/sqlite-doc-%{extver}.zip
Source2: https://www.sqlite.org/2020/sqlite-autoconf-%{extver}.tar.gz
Source0: https://www.sqlite.org/%{year}/sqlite-src-%{extver}.zip
Source1: http://www.sqlite.org/%{year}/sqlite-doc-%{extver}.zip
Source2: https://www.sqlite.org/%{year}/sqlite-autoconf-%{extver}.tar.gz
Patch1: 0001-sqlite-no-malloc-usable-size.patch
Patch2: 0002-remove-fail-testcase-in-no-free-fd-situation.patch
Patch3: CVE-2021-20227.patch
BuildRequires: gcc autoconf tcl tcl-devel
BuildRequires: ncurses-devel readline-devel glibc-devel
@@ -62,7 +62,7 @@ This contains man files and HTML files for the using of sqlite.
%setup -q -a1 -n %{name}-src-%{extver}
%patch1 -p1
%patch2 -p1
%patch3 -p1
rm -f %{name}-doc-%{extver}/sqlite.css~ || :
@@ -104,6 +104,8 @@ chmod 755 %{buildroot}/%{tcl_sitearch}/sqlite3/*.so
%check
export LD_LIBRARY_PATH=`pwd`/.libs
export MALLOC_CHECK_=3
#bypass zipfile.test
rm test/zipfile.test
%ifarch x86_64 %{ix86}
%else
@@ -133,38 +135,47 @@ make test
%{_mandir}/man*/*
%changelog
* Mon Apr 26 2021 bzhaoop<bzhaojyathousandy@gmail.com> - 3.32.3-3
- Fix CVE-2021-20227
* Thu Sep 2 2020 lihaotian<lihaotian9@huawei.com> - 3.32.3-2
- update source0 url
* Tue Jul 21 2020 jixinjie <jixinjie@huawei.com> - 3.32.3-1
* Tue Aug 25 2020 yanglongkang <yanglongkang@huawei.com> - 3.32.3-1
- update package to 3.32.3
* Tue Jun 30 2020 volcanodragon <linfeilong@huawei.com> - 3.24.0-12
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:rename patches
* Tue Jun 23 2020 yanglongkang <yanglongkang@huawei.com> - 3.24.0-11
* Tue Aug 4 2020 yanglongkang <yanglongkang@huawei.com> - 3.31.1-2
- Type:cves
- ID:CVE-2020-13434 CVE-2020-13435 CVE-2020-13630 CVE-2020-13632
- SUG:NA
- DESC:fix CVE-2020-13434 CVE-2020-13435 CVE-2020-13630 CVE-2020-13632
- ID:CVE-2020-13871
- SUG: NA
- DESC: fix cve
* Sun Apr 19 2020 ethan848 <mingfangsen@huawei.com>
* Mon Aug 3 2020 yanglongkang <yanglongkang@huawei.com> - 3.31.1-1
- Type:cves
- ID:CVE-2020-15358 CVE-2020-13631
- SUG: NA
- DESC: fix cve
* Fri Apr 17 2020 luoshijie <luoshijie1@huawei.com> - 3.31.1-0
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:CVE-2020-11655 fixed
- SUG:restart
- DESC:update sqlite to 3.31.1.
* Tue Mar 10 2020 steven <steven_ygui@163.com> - 3.24.0-9
* Tue Mar 10 2020 guiyao <guiyao@huawei.com> - 3.24.0-11
- Type:cves
- ID:CVE-2020-9327
- SUG: NA
- DESC: fix cve
* Fri Feb 28 2020 sunshihao <sunshihao@huawei.com> - 3.24.0-10
- Type:enhancement
- ID:NA
- ID:
- SUG: NA
- DESC: remove suffix information
* Wed Feb 26 2020 guiyao <guiyao@huawei.com> - 3.24.0-9
- Type:cves
- ID:CVE-2018-20505
- SUG:NA
- DESC:CVE-2018-20505, CVE-2020-9327 fixed
- DESC:fix cves
* Wed Jan 11 2020 openEuler Buildteam <buildteam@openeuler.org> - 3.24.0-8
- Type:enhancement
-4
View File
@@ -1,4 +0,0 @@
version_control: fossil
src_repo: https://www.sqlite.org/src
tag_prefix: "version-"
seperator: "."