diff options
Diffstat (limited to 'meta/recipes-support/sqlite/files/CVE-2020-35527.patch')
-rw-r--r-- | meta/recipes-support/sqlite/files/CVE-2020-35527.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/meta/recipes-support/sqlite/files/CVE-2020-35527.patch b/meta/recipes-support/sqlite/files/CVE-2020-35527.patch new file mode 100644 index 0000000000..d1dae389b0 --- /dev/null +++ b/meta/recipes-support/sqlite/files/CVE-2020-35527.patch | |||
@@ -0,0 +1,22 @@ | |||
1 | From: dan <dan@noemail.net> | ||
2 | Date: Mon, 26 Oct 2020 13:24:36 +0000 | ||
3 | Subject: [PATCH] Fix a problem with ALTER TABLE for views that have a nested | ||
4 | FROM clause. Ticket [f50af3e8a565776b]. | ||
5 | |||
6 | Upstream-Status: Backport [http://security.debian.org/debian-security/pool/updates/main/s/sqlite3/sqlite3_3.27.2-3+deb10u2.debian.tar.xz] | ||
7 | CVE: CVE-2020-35527 | ||
8 | Signed-off-by: Virendra Thakur <virendra.thakur@kpit.com> | ||
9 | --- | ||
10 | Index: sqlite-autoconf-3310100/sqlite3.c | ||
11 | =================================================================== | ||
12 | --- sqlite-autoconf-3310100.orig/sqlite3.c | ||
13 | +++ sqlite-autoconf-3310100/sqlite3.c | ||
14 | @@ -133110,7 +133110,7 @@ static int selectExpander(Walker *pWalke | ||
15 | pNew = sqlite3ExprListAppend(pParse, pNew, pExpr); | ||
16 | sqlite3TokenInit(&sColname, zColname); | ||
17 | sqlite3ExprListSetName(pParse, pNew, &sColname, 0); | ||
18 | - if( pNew && (p->selFlags & SF_NestedFrom)!=0 ){ | ||
19 | + if( pNew && (p->selFlags & SF_NestedFrom)!=0 && !IN_RENAME_OBJECT ){ | ||
20 | struct ExprList_item *pX = &pNew->a[pNew->nExpr-1]; | ||
21 | sqlite3DbFree(db, pX->zEName); | ||
22 | if( pSub ){ | ||