Access to free()ed memory problem fixed. Found by electric fence.

Only an issue when doing an EXPLAIN of a CREATE INDEX. (CVS 1186)

FossilOrigin-Name: 6604e5f7d332b484e84d177f93c9d9f2ab54a32b
This commit is contained in:
drh 2004-01-16 20:01:31 +00:00
parent a70f2d8d72
commit 606c369847
3 changed files with 10 additions and 10 deletions

View File

@ -1,5 +1,5 @@
C See\sticket\s#569;\seliminates\swarnings\sfor\sCygwin\sv1.5\sand\sabove.\s(CVS\s1185)
D 2004-01-16T19:11:29
C Access\sto\sfree()ed\smemory\sproblem\sfixed.\s\sFound\sby\selectric\sfence.\nOnly\san\sissue\swhen\sdoing\san\sEXPLAIN\sof\sa\sCREATE\sINDEX.\s(CVS\s1186)
D 2004-01-16T20:01:31
F Makefile.in 0515ff9218ad8d5a8f6220f0494b8ef94c67013b
F Makefile.linux-gcc b86a99c493a5bfb402d1d9178dcdc4bd4b32f906
F README f1de682fbbd94899d50aca13d387d1b3fd3be2dd
@ -26,7 +26,7 @@ F src/auth.c c59ad0dab501888f8b1fccc25e2f5965d2265116
F src/btree.c 9ab30f0504ef69ba4cba2f264d8096c5abc2b7b8
F src/btree.h 9b7c09f1e64274d7bb74a57bbfc63778f67b1048
F src/btree_rb.c 50210dfd2a5f410c8624ef8fde8e82babd376d9f
F src/build.c a7493c433de5b552f9535d8fa7ed80aaf135491e
F src/build.c 4b95b200515d1f6ffc4ae60d5d57380afa0b4081
F src/copy.c 9e47975ea96751c658bcf1a0c4f0bb7c6ee61e73
F src/date.c bb89fdb9c89e367b9a728c58cb96e4823974a2c1
F src/delete.c 0f81e6799c089487615d38e042a2de4d2d6192bc
@ -180,7 +180,7 @@ F www/speed.tcl 2f6b1155b99d39adb185f900456d1d592c4832b3
F www/sqlite.tcl 3c83b08cf9f18aa2d69453ff441a36c40e431604
F www/tclsqlite.tcl b9271d44dcf147a93c98f8ecf28c927307abd6da
F www/vdbe.tcl 9b9095d4495f37697fd1935d10e14c6015e80aa1
P 92e7f78057c4e8f6214b6e0a2d80c3ffcbfdf68e
R 5212bc9a51a372c7e4a06f7d90383163
U dougcurrie
Z 61379a1524ae2802d0ed28c9f6d81748
P a0f8b1f3cea9a0542f8d36898bf98df3c59f12e0
R 22d0a66cb7de0b8a060be537991d2422
U drh
Z df4ea589467fac8b0c735260f2083f34

View File

@ -1 +1 @@
a0f8b1f3cea9a0542f8d36898bf98df3c59f12e0
6604e5f7d332b484e84d177f93c9d9f2ab54a32b

View File

@ -23,7 +23,7 @@
** ROLLBACK
** PRAGMA
**
** $Id: build.c,v 1.162 2003/12/06 21:43:56 drh Exp $
** $Id: build.c,v 1.163 2004/01/16 20:01:31 drh Exp $
*/
#include "sqliteInt.h"
#include <ctype.h>
@ -1766,7 +1766,7 @@ void sqliteCreateIndex(
sqliteVdbeAddOp(v, OP_String, 0, 0);
sqliteVdbeChangeP3(v, -1, "index", P3_STATIC);
sqliteVdbeAddOp(v, OP_String, 0, 0);
sqliteVdbeChangeP3(v, -1, pIndex->zName, P3_STATIC);
sqliteVdbeChangeP3(v, -1, pIndex->zName, strlen(pIndex->zName));
sqliteVdbeAddOp(v, OP_String, 0, 0);
sqliteVdbeChangeP3(v, -1, pTab->zName, P3_STATIC);
addr = sqliteVdbeAddOp(v, OP_CreateIndex, 0, isTemp);