aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2007-12-14 17:22:23 +0000
committerdrh <drh@noemail.net>2007-12-14 17:22:23 +0000
commita018dc777bab751d22abd540fc8a542b2368295a (patch)
treea578a915c00fc6c75ff9e8ed7b5b61aac04c717c /src
parentef0bea922034efd25fcb3a188588e3e8e3d9eb2f (diff)
downloadsqlite-a018dc777bab751d22abd540fc8a542b2368295a.tar.gz
sqlite-a018dc777bab751d22abd540fc8a542b2368295a.zip
Change to the crash simulator to give better diagnostics in case it
runs out of memory while using the mem3.c allocator. (CVS 4632) FossilOrigin-Name: 0d5747dbad97bf09cf9050e44efbcf5d6b812fbd
Diffstat (limited to 'src')
-rw-r--r--src/test6.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/test6.c b/src/test6.c
index c0456ca86..39bbc072e 100644
--- a/src/test6.c
+++ b/src/test6.c
@@ -339,6 +339,9 @@ static int writeListAppend(
assert((zBuf && nBuf) || (!nBuf && !zBuf));
pNew = (WriteBuffer *)sqlite3MallocZero(sizeof(WriteBuffer) + nBuf);
+ if( pNew==0 ){
+ fprintf(stderr, "out of memory in the crash simulator\n");
+ }
pNew->iOffset = iOffset;
pNew->nBuf = nBuf;
pNew->pFile = (CrashFile *)pFile;