<i>Long window pathnames used in "megawidgets" can crash wish</i>.
by
.
D 2000-10-26T01:07:00
J assignee nobody
J cmimetype text/plain
J comment OriginalBugID:\s2483\sBug\nVersion:\s8.2b2\nSubmitDate:\s'1999-08-02'\nLastModified:\s'1999-09-01'\nSeverity:\sCRIT\nStatus:\sReleased\nSubmitter:\shobbs\nChangedBy:\shobbs\nOS:\sWindows\sNT\nOSVersion:\s4.0\nFixedDate:\s'1999-09-01'\nFixedInVersion:\s8.2.1\nClosedDate:\s'2000-10-25'\n\n\nThis\swas\soriginally\sreported\swhen\ssomeone\sused\smclistbox\sand\sBWidgets,\nbut\sI\scan\sreproduce\sit\sagainst\smy\smegawidgets,\sand\sit\smight\swell\sbe\nreproducible\sfor\siwidgets.\s\sThis\sonly\saffects\sWindows.\n\nset\sw\s.[string\srepeat\sa\s100]\n<megawidget>\s$w;\s#\sie\s-\smclistbox,\sventry,\sscrolledtext,\setc...\npack\s$w\n\nNow\sattempting\sto\sinteract\swith\ssaid\swidget\swill\scause\san\sApp\sError:\n\nThe\sinstruction\sat\s"0x696c2022"\sreferenced\smem\sat\s"0x696c2022".\nThe\smemory\scould\snot\sbe\s"read".\n\nThis\sonly\soccurs\swith\suser\sinteraction,\swhich\smight\spoint\sto\sthe\nbinding\smechanism\s(?),\sand\sonly\swith\sthese\s"megawidets",\swhere\sa\nlot\sof\srenaming\sand\sbinding\stricks\soccur\sto\smake\sthem\sseem\slike\nregular\sTk\swidgets.\s\sIf\syou\ssend\scommands\sto\sthe\swidget\sfrom\sthe\nconsole,\severything\sworks\sOK.\n\nSee\salso\sthis\ssnippet\sthat\scauses\sa\sbug\swhen\sthe\sproc\sis\sused,\sbut\nnot\swhen\sthe\sinterp\salias\sis\sused:\n\n#\sset\sto\s14\sto\scrash\sthis...\s(<=13\sworks)\npackage\srequire\sTk\nset\sdepth\s15\nset\spath\s""\nfor\s{set\scounter\s0}\s{$counter\s<\s$depth}\s{incr\scounter}\s{\n\s\sappend\spath\s".frame$counter"\n\s\sframe\s$path\n\s\spack\s$path\n}\n\nentry\s$path.t\npack\s$path.t\n\nrename\s$path.t\s$path.tUndo\ninterp\salias\s{}\s$path.t\s{}\s$path.tUndo\n#proc\s$path.t\s{args}\s[subst\s-nocommand\s{\n#\s\s\s\secho\swe\sare\sabout\sto\scall\suplevel\s$path.tUndo\s\\$args\n#\s\s\s\seval\s$path.tUndo\s\\$args\n#\s\s\s\secho\swe\scalled\sit\n#}\n#]\n\s\n--\s08/19/1999\shobbs\n\nThis\swas\sin\stclProc.c\swhere\sa\sstatic\smsg\swould\soverflow.\nFixed\sfor\s8.2.1.\s\n--\s09/01/1999\shobbs
J foundin obsolete:\s8.2b2
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 69.\sOther
J title Long\swindow\spathnames\sused\sin\s"megawidgets"\scan\scrash\swish
J type Bug
K 218872ffffffffffffffffffffffffffffffffff
U nobody
Z 1df7224e4504496156f6f369bd206f29