aboutsummaryrefslogtreecommitdiffstats
path: root/main/sqlite/CVE-2020-11655.patch
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@alpinelinux.org>2020-05-07 12:39:09 +0000
committerLeonardo Arena <rnalrd@alpinelinux.org>2020-05-07 13:49:24 +0000
commita31444c0192891f76398568d2752e94a7a371f2e (patch)
treed678da4608fe47046113c00a40f1eab669a51489 /main/sqlite/CVE-2020-11655.patch
parent31b231c96b4c1e571b892fe539478a2a2b5f1ece (diff)
downloadaports-a31444c0192891f76398568d2752e94a7a371f2e.tar.bz2
aports-a31444c0192891f76398568d2752e94a7a371f2e.tar.xz
main/sqlite: security fix (CVE-2020-11655)3.9-stable
ref #11508
Diffstat (limited to 'main/sqlite/CVE-2020-11655.patch')
-rw-r--r--main/sqlite/CVE-2020-11655.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/main/sqlite/CVE-2020-11655.patch b/main/sqlite/CVE-2020-11655.patch
new file mode 100644
index 0000000000..ee58cf62e8
--- /dev/null
+++ b/main/sqlite/CVE-2020-11655.patch
@@ -0,0 +1,24 @@
+From 660733d19a17c9927275dbcde537d12531a8d121 Mon Sep 17 00:00:00 2001
+From: Leonardo Arena <rnalrd@alpinelinux.org>
+Date: Thu, 7 May 2020 12:37:05 +0000
+Subject: [PATCH] CVE-2020-11655
+
+---
+ sqlite3.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/sqlite3.c b/sqlite3.c
+index 55dc686..f0ccb2d 100644
+--- a/sqlite3.c
++++ b/sqlite3.c
+@@ -133217,6 +133217,7 @@ static void resetAccumulator(Parse *pParse, AggInfo *pAggInfo){
+ struct AggInfo_func *pFunc;
+ int nReg = pAggInfo->nFunc + pAggInfo->nColumn;
+ if( nReg==0 ) return;
++ if( pParse->nErr ) return;
+ #ifdef SQLITE_DEBUG
+ /* Verify that all AggInfo registers are within the range specified by
+ ** AggInfo.mnReg..AggInfo.mxReg */
+--
+2.26.0
+