1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-29 08:01:23 +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

@ -331,6 +331,9 @@ if {$::tcl_platform(pointerSize)>=8} {
# integer overflow.
sqlite3_blob_read $rdHandle 2147483647 2147483647
} errmsg]
if {[string match {out of memory in *test_blob.c} $errmsg]} {
set errmsg SQLITE_ERROR
}
lappend rc $errmsg
} {1 SQLITE_ERROR}
}