1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-11 01:42:22 +03:00

Make sure the sqlite3OomFault() routine sets an error in the Parse object

if there is a Parse object active and linked to the database connection.

FossilOrigin-Name: ad7aace761c6b21ba453eaf43c68d985be7cbd5a200fe0d2e27a0c7150f99874
This commit is contained in:
drh
2022-01-24 12:48:54 +00:00
parent f5bc444077
commit 3cdb1394b9
6 changed files with 24 additions and 15 deletions

View File

@@ -1404,7 +1404,7 @@ KeyInfo *sqlite3KeyInfoAlloc(sqlite3 *db, int N, int X){
p->nRef = 1;
memset(&p[1], 0, nExtra);
}else{
sqlite3OomFault(db);
return (KeyInfo*)sqlite3OomFault(db);
}
return p;
}