.
D 2003-11-19T21:21:34
J assignee dgp
J cmimetype text/plain
J comment The\snew\s{expand}\scode\scrashes\swhen\sattempting\sto\ncompile\scommands\swith\s>\s255\sarguments\s(or\ssomething\nlike\sthat).\n\nThe\soffending\scode\sis\sthis:\n\nif\s((delta\s==\s255)\n&&\s(tokenPtr->type\s!=\sTCL_TOKEN_EXPAND_WORD))\s{\n\s\s\s\s/*\n\s\s\s\s/*\n\s\s\s\s\s*\sPush\san\sempty\slist\sfor\sexpansion\sso\sour\sdelta\n\s\s\s\s\s*\sbetween\sexpanded\swords\sdoesn't\soverflow\sa\sbyte\n\s\s\s\s\s*/\n\s\s\s\sobjIndex\s=\sTclRegisterNewLiteral(envPtr,\s"",\s0);\n\s\s\s\sTclEmitPush(objIndex,\senvPtr);\n\s\s\s\sTcl_DStringAppend(&deltaList,\s(CONST\schar\n*)&delta,\s1);\n\s\s\s\sdelta\s=\s1;\n\nwhere\s'deltaList'\sis\snever\sinitialized\sin\sthis\scode\spath.\s\s\n\nA\sbrief\slook\sat\sthe\scode\sshows\s(to\sme\sat\sleast!)\sthat\nthere's\sno\sway\sthat\sDString\sis\sever\sgoing\sto\sbe\ninitialized\sin\sthe\snon-TCL_TOKEN_EXPAND_WORD\scase,\sso\nthe\scode\sappears\sto\sbe\sobviously\sincorrect.\n\nIf\snecessary\sI\scan\stry\sto\screate\sa\stest\scase,\sbut\sright\nnow\sjust\sa\sbig\sapplication\salways\scrashes\sat\sthat\sline.\n
J foundin obsolete:\s8.5a0
J priority 8
J resolution None
J status Open
J submitter vincentdarley
J subsystem None
J title tclCompile.c\scrash
J type Bug
K 845412ffffffffffffffffffffffffffffffffff
U vincentdarley
Z e03509ad12b9cf24d8dc827422bb4bde