mirror of
https://github.com/sqlite/sqlite.git
synced 2025-07-30 19:03:16 +03:00
Avoid a segfault when OOM on a simple EXPLAIN query. Ticket #3478. (CVS 5860)
FossilOrigin-Name: acf26cc0f77b3a308d86f6dc02ecda66a4b12fd0
This commit is contained in:
@ -12,7 +12,7 @@
|
||||
# This test script checks malloc failures in LIMIT operations for
|
||||
# UPDATE/DELETE statements.
|
||||
#
|
||||
# $Id: mallocJ.test,v 1.2 2008/10/30 22:13:23 drh Exp $
|
||||
# $Id: mallocJ.test,v 1.3 2008/11/04 14:25:06 drh Exp $
|
||||
|
||||
set testdir [file dirname $argv0]
|
||||
source $testdir/tester.tcl
|
||||
@ -49,4 +49,9 @@ do_malloc_test mallocJ-2 -sqlprep {
|
||||
ORDER BY 2, 3;
|
||||
}
|
||||
|
||||
# ticket #3478
|
||||
do_malloc_test mallocJ-3 -sqlbody {
|
||||
EXPLAIN COMMIT
|
||||
}
|
||||
|
||||
finish_test
|
||||
|
Reference in New Issue
Block a user