aboutsummaryrefslogtreecommitdiffstats
path: root/main/sqlite/CVE-2017-15286.patch
diff options
context:
space:
mode:
Diffstat (limited to 'main/sqlite/CVE-2017-15286.patch')
-rw-r--r--main/sqlite/CVE-2017-15286.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/main/sqlite/CVE-2017-15286.patch b/main/sqlite/CVE-2017-15286.patch
new file mode 100644
index 0000000000..ea88b3c3ca
--- /dev/null
+++ b/main/sqlite/CVE-2017-15286.patch
@@ -0,0 +1,17 @@
+Index: src/shell.c
+==================================================================
+--- src/shell.c
++++ src/shell.c
+@@ -3799,10 +3799,11 @@
+ isIPK = 0;
+ }
+ }
+ }
+ sqlite3_finalize(pStmt);
++ if( azCol==0 ) return 0;
+ azCol[0] = 0;
+ azCol[nCol+1] = 0;
+
+ /* The decision of whether or not a rowid really needs to be preserved
+ ** is tricky. We never need to preserve a rowid for a WITHOUT ROWID table
+