aboutsummaryrefslogtreecommitdiffstats
path: root/main/sqlite/CVE-2017-15286.patch
blob: ea88b3c3ca51443ce269c1f8ab90dfd85e794bb4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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