1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-10 01:02:56 +03:00

Fix an error in the SQLITE_MAX_MEMORY implementation resulting from a bad

merge.  Update the OSSFuzz interface so that it times out after running
the byte-code engine for 10 seconds.

FossilOrigin-Name: f8560c60d10c0365b33342ab05b5a953987b0471
This commit is contained in:
drh
2017-03-10 17:03:11 +00:00
parent 1e45c7db56
commit a6bf20b587
7 changed files with 46 additions and 25 deletions

View File

@@ -232,7 +232,8 @@ static void mallocWithAlarm(int n, void **pp){
#ifdef SQLITE_MAX_MEMORY
if( sqlite3StatusValue(SQLITE_STATUS_MEMORY_USED)+nFull>SQLITE_MAX_MEMORY ){
return 0;
*pp = 0;
return;
}
#endif