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:
@ -1956,6 +1956,7 @@ static int fts5CacheInstArray(Fts5Cursor *pCsr){
|
||||
if( aInst ){
|
||||
pCsr->aInst = aInst;
|
||||
}else{
|
||||
pCsr->nInstAlloc = nInst = 0;
|
||||
rc = SQLITE_NOMEM;
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user