mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-08 14:02:16 +03:00
Fix a problem with handling OOM errors in fts3.
FossilOrigin-Name: f9c54e95ecf1c36c4750bb151e91d81c1d1bd596
This commit is contained in:
@@ -299,9 +299,10 @@ static int sqlite3Step(Vdbe *p){
|
||||
return SQLITE_MISUSE;
|
||||
}
|
||||
|
||||
/* Assert that malloc() has not failed */
|
||||
/* Check that malloc() has not failed. If it has, return early. */
|
||||
db = p->db;
|
||||
if( db->mallocFailed ){
|
||||
p->rc = SQLITE_NOMEM;
|
||||
return SQLITE_NOMEM;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user