Skip to content
Tcl Source Code Artifact [8ed4eba88e]
Login

Artifact [8ed4eba88e]

Artifact 8ed4eba88e4561c26e78fe977ab4e7661af3f002:

Ticket change [8ed4eba88e] - Ticket [1189274fffffffff|1189274fff] <i>Crash in TclExecuteByteCode</i> status still Open with 4 other changes by msofer on 2005-04-25 17:08:06.
D 2005-04-25T17:08:06
J icomment Logged\sIn:\sYES\s\nuser_id=148712\n\nAs\snoted\sin\sthe\scomment\sin\sline\s4755\s"We\salready\schecked\nabove\sthat\seach\slist\stemp\sholds\sa\svalid\slist\sobject".\nSpecifically,\sthe\scall\sto\sTcl_ListObjLength\sat\sline\s4700\nshimmers\sthe\sobj\sto\slistType\s(or\sleaves\sit\sunchanged\sif\sits\nstring\srep\sis\s{}).\n\nHence,\swhenever\sthe\sobj\shas\san\sempty\sstring\srep,\nTclListObjGetElements\ssets\sthe\svariable\slistLen\sto\sgarbage.\nThis\sis\sindeed\sa\sbad\sbug,\swhich\swill\sshow\sits\sface\swhenever\nthe\sjunky\slistLen\sis\sless\sthan\svalIndex.\n\nTclListObjGetElements\sshould\s*not*\sbe\shave\sbeen\sused\shere\nanyway\s(ie,\seven\sif\sno\slist\sis\sempty):\sit\sis\spossible\sthat\none\sof\sthe\slists\sgets\sshimmered\sout\sof\slistType\sas\sa\sside\neffect\sof\ssetting\sa\sprevious\svar,\sthere\sis\sno\sguarantee\sthat\nthe\scheck\sat\sline\s4700\sremains\svalid\swhen\swe\sget\sto\sline\n4727\sin\sthe\scase\si>0.\n
J login msofer
J mimetype text/plain
J username msofer
K 1189274fffffffffffffffffffffffffffffffff
U msofer
Z 3db5cba1fadf5c73b306ce52ea3df652