<i>Tcl8.5 + incrTcl3.4 [variable] crash</i> status still Open with 5 other changes
by
.
D 2012-09-06T02:39:19
J icomment The\smemory\scorruption\shappens\sin\sthe\sexecution\sof\nthe\sINST_VARIABLE\sinstruction\sin\stclExecute.c\n\nThe\s"call"\sTclSetVarNamespaceVar(otherPtr)\scorrupts\nthe\smemory.\s\sThis\sis\sreally\sa\smacro,\sand\sthe\sexpansion\nincludes\sthe\sline:\n\n((VarInHash\s*)(otherPtr))->refCount++;\n\nThis\sis\sactually\swriting\sone\sbyte\spast\sallocated\smemory,\nso\sthis\stells\sme\sotherPtr\spoints\sto\sa\sstruct\sthat\sis\sactually\nsmaller\sin\ssize\sthan\sa\sVarInHash\sstruct.\s\sI\sthink\sthis\smust\nbe\ssome\sItcl\sdeclared\sstruct\sthat\sthe\sItcl\scustom\sresolvers\nallocate.\n\nI\shope\sthat's\senough\sinformation\sfor\smsofer\sto\sunderstand\nthe\sproblem\sat\sa\smore\sconceptual\slevel\sand\srecommend\sa\sfix.\n\n
J login dgp
J mimetype text/plain
J priority 9\sImmediate
J username dgp
K 3564735fffffffffffffffffffffffffffffffff
U dgp
Z a7b06b752ae5b7878051ecf26db98e49