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

If an FTS5 Cursor fails to enlarge the space for the aInst array, set the

size of the aInst array to zero.
dbsqlfuzz 294254b8105cca409f27a711f1eb2e9e63cbcac5.

FossilOrigin-Name: 4ae5e5b5ecbce580d3f7f970076e828fc6fb5fbcdc3bbe8381ab38f52870a54f
This commit is contained in:
drh
2021-05-22 01:30:30 +00:00
parent 93c8139c1a
commit d42dbd9dfe
3 changed files with 8 additions and 7 deletions

View File

@ -1956,6 +1956,7 @@ static int fts5CacheInstArray(Fts5Cursor *pCsr){
if( aInst ){
pCsr->aInst = aInst;
}else{
pCsr->nInstAlloc = nInst = 0;
rc = SQLITE_NOMEM;
break;
}