mirror of
https://github.com/sqlite/sqlite.git
synced 2025-07-30 19:03:16 +03:00
Fix a NULL pointer deference following malloc failure. Bug discovered
by klocwork. (CVS 3328) FossilOrigin-Name: eb91612f4646b15c2b8398c5225669419b03b531
This commit is contained in:
@ -14,7 +14,7 @@
|
||||
# special feature is used 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.33 2006/06/26 12:50:09 drh Exp $
|
||||
# $Id: malloc.test,v 1.34 2006/07/11 12:40:25 drh Exp $
|
||||
|
||||
set testdir [file dirname $argv0]
|
||||
source $testdir/tester.tcl
|
||||
@ -136,7 +136,7 @@ do_malloc_test 1 -tclprep {
|
||||
primary key(a,b,c)
|
||||
);
|
||||
CREATE INDEX i1 ON t1(a,b);
|
||||
INSERT INTO t1 VALUES(1,2.3,4.5,'hi','there');
|
||||
INSERT INTO t1 VALUES(1,2.3,4.5,'hi',x'746865726500');
|
||||
INSERT INTO t1 VALUES(6,7.0,0.8,'hello','out yonder');
|
||||
SELECT * FROM t1;
|
||||
SELECT avg(b) FROM t1 GROUP BY a HAVING b>20.0;
|
||||
|
Reference in New Issue
Block a user