1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-07 02:42:48 +03:00

Handle a real OOM condition when incrblob2.test is run on a low-memory machine.

FossilOrigin-Name: f483d06a9af8d6771090551d911831e1df13bb05a6b7780499594703c28ebbb2
This commit is contained in:
drh
2017-07-24 17:37:35 +00:00
parent 1d8536bc0f
commit e8e0eda95d
4 changed files with 12 additions and 9 deletions

View File

@@ -241,7 +241,7 @@ static int SQLITE_TCLAPI test_blob_read(
if( nByte>0 ){
zBuf = (unsigned char *)Tcl_AttemptAlloc(nByte);
if( zBuf==0 ){
Tcl_AppendResult(interp, "out of memory", 0);
Tcl_AppendResult(interp, "out of memory in " __FILE__, 0);
return TCL_ERROR;
}
}