aboutsummaryrefslogtreecommitdiffstats
path: root/main/sqlite/CVE-2020-11655.patch
blob: ee58cf62e87d929693196b504158b139c0bdf2b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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