mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-01 06:27:03 +03:00
Fix another segfault that can occur following a malloc failure in the SQL compiler. (CVS 4748)
FossilOrigin-Name: 9d98a3f0dded4ee7ed53872f48ee8592ff077f92
This commit is contained in:
@ -16,7 +16,7 @@
|
||||
# to see what happens in the library if a malloc were to really fail
|
||||
# due to an out-of-memory situation.
|
||||
#
|
||||
# $Id: malloc.test,v 1.56 2008/01/23 15:44:51 danielk1977 Exp $
|
||||
# $Id: malloc.test,v 1.57 2008/01/23 17:13:41 danielk1977 Exp $
|
||||
|
||||
set testdir [file dirname $argv0]
|
||||
source $testdir/tester.tcl
|
||||
@ -573,6 +573,14 @@ ifcapable {pager_pragmas} {
|
||||
}
|
||||
}
|
||||
|
||||
ifcapable compound {
|
||||
do_malloc_test 24 -start 19 -sqlprep {
|
||||
CREATE TABLE t1(a, b, c)
|
||||
} -sqlbody {
|
||||
SELECT 1 FROM t1 UNION SELECT 2 FROM t1 ORDER BY 1
|
||||
}
|
||||
}
|
||||
|
||||
# Ensure that no file descriptors were leaked.
|
||||
do_test malloc-99.X {
|
||||
catch {db close}
|
||||
|
Reference in New Issue
Block a user