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:
@ -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}
|
||||
}
|
||||
|
Reference in New Issue
Block a user