.
D 2004-01-12T14:24:29
J assignee msofer
J cmimetype text/plain
J comment In\s8.4.5/8.5a0\sTcl_GetIndexFromObj\scalls\nTcl_GetIndexFromObjStruct\swhich\smay\sdo\sthis:\n\nresultPtr\s=\sTcl_GetObjResult(interp);\nTcl_AppendStringsToObj(resultPtr,\n(numAbbrev\s>\s1)\s?\s"ambiguous\s"\s:\s"bad\s",\smsg,\s"\s\\"",\nkey,\s"\\":\smust\sbe\s",\sSTRING_AT(tablePtr,offset,0),\n(char*)NULL);\n\nsince\sTcl_GetIndexFromObj\scan\sbe\scalled\sfrom\sarbitrary\nC\scode,\sthere\scan\sbe\sno\sassumption\sthe\sinterp\sresult\sis\nempty/unshared,\sand\sthe\sabove\scode\scan\scrash\s(in\sfact\nit\sdoes\scrash\swhen\sI\suse\salphatk+tkdnd\stogether).\n\nOne\sfix\sis\sto\sinsert:\n\nif\s(Tcl_IsShared(resultPtr))\s{\n\s\s\s\sTcl_Obj\s*copy\s=\sTcl_DuplicateObj(resultPtr);\n\s\s\s\sTcl_DecrRefCount(resultPtr);\n\s\s\s\sTcl_SetObjResult(interp,\scopy);\n\s\s\s\sresultPtr\s=\scopy;\n}\n\nbut\sI\sleave\sthe\scorrect\sfix\sto\sthe\smaintainers.\n
J foundin obsolete:\s8.4.5
J priority 7\sHigh
J resolution None
J status Open
J submitter vincentdarley
J subsystem 13.\sIndex\sObject
J title modifying\sshared\sobject\spanic\sin\stclIndexObj.c
J type Bug
K 875395ffffffffffffffffffffffffffffffffff
U vincentdarley
Z a5b4fcc1ad325e5252fc0d4440cef327