1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-05 15:55:57 +03:00

Simulate OOM errors in the sqlite3OsFetch() function. Run malloc.test as part of the "mmap" permutation.

FossilOrigin-Name: 77443ef2cd0b29b7822eea544ab8c6c4a93cb67b
This commit is contained in:
dan
2013-03-25 18:25:49 +00:00
parent df737fe6f5
commit a64d5a15b7
5 changed files with 12 additions and 10 deletions

View File

@@ -142,6 +142,7 @@ int sqlite3OsShmMap(
}
int sqlite3OsFetch(sqlite3_file *id, i64 iOff, int iAmt, void **pp){
DO_OS_MALLOC_TEST(id);
return id->pMethods->xFetch(id, iOff, iAmt, pp);
}
int sqlite3OsUnfetch(sqlite3_file *id, i64 iOff, void *p){