1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-01 06:27:03 +03:00

Fix a potential crash in sqlite3expert.c caused by a missing sqlite3_reset()

call.

FossilOrigin-Name: f6355970f04a3c4d85801c806366788139d8d5ad29383ec7faa81e2176ffe987
This commit is contained in:
dan
2018-01-09 18:31:11 +00:00
parent e2d22ffaa3
commit c48e0271f6
6 changed files with 24 additions and 14 deletions

View File

@ -1525,6 +1525,7 @@ static int idxPopulateOneStat1(
);
zOrder = idxAppendText(&rc, zOrder, "%s%d", zComma, ++nCol);
}
sqlite3_reset(pIndexXInfo);
if( rc==SQLITE_OK ){
if( p->iSample==100 ){
zQuery = sqlite3_mprintf(