.
D 2000-10-26T01:08:41
J assignee nobody
J cmimetype text/plain
J comment OriginalBugID:\s3336\sBug\nVersion:\s8.2.1\nSubmitDate:\s'1999-11-05'\nLastModified:\s'1999-12-04'\nSeverity:\sCRIT\nStatus:\sReleased\nSubmitter:\stechsupp\nChangedBy:\shobbs\nOS:\sLinux\nOSVersion:\sDebian\s(Potato)\nFixedDate:\s'1999-12-04'\nFixedInVersion:\s8.2.3\nClosedDate:\s'2000-10-25'\n\n\nName:\sPatrick\sEarl\n\n\n\nComments:\n\nThis\sbug\saffects\sno\sless\sthan\s8.0.5,\s8.2.0,\sand\s8.2.1,\sprobably\sthe\n\nentire\s8.x\sseries.\n\n\n\nI\sdid\snot\ssearch\sfor\sother\soccurences\sof\sthe\ssame\stype\sof\sbug,\swhere\n\nTcl_UtfBackslash\swas\scalled\sduring\sthe\sparsing\sof\sa\scounted\sstring.\n\nConsidering\sit\scan\sbe\sremotely\sactivated\sdepending\son\sthe\sapplication,\n\nit\sis\san\simportant\ssituation\sto\scheck\sfor.\s\sIf\syou\swould\slike,\sI\swould\n\nbe\swilling\sto\slook\sover\sthe\srest\sof\sthe\sTcl\scode\sfor\sthe\ssame\ssituation,\n\nalthough\ssince\smy\sknowledge\sof\sthe\sTcl\scodebase\sis\slimited,\sthere\smay\sbe\n\npeople\smore\sappropriate\sfor\sthat\sjob.\n\n\n\nReproducibleScript:\n\nCalled\sTcl_ScanCountedElement\swith\sa\shex\ssequence\sas\sthe\slast\sportion\sof\n\nthe\sstring.\s\sThe\sstring\swas\snot\snull\sterminated.\n\n\n\nObservedBehavior:\n\nTcl\scrashed\sand\sburned.\s\sIn\sTcl_ScanCountedElement\sit\scalled\n\nTcl_UtfBackslash\swhich\sparsed\sthe\sbackslash\ssequence\swithout\sany\sregaurd\n\nto\swhere\sTcl_ScanCountedElement\sknows\sthe\sstring\sends.\n\nTcl_ScanCountedElement's\sloop\schecks\sfor\sa\s!=\send\scondition,\sso\sif\sthe\n\nend\sof\syour\sstring\shappened\sto\sbe\s\\x01\sand\sthe\snext\scharacter\sin\smemory\n\nwas\sa\sC,\sTcl_UtfBackslash\swould\sparse\sit\sas\s\\x01C\sand\n\nTcl_ScanCountedElement\swould\sbe\smessed\sup.\n\n\n\nDesiredBehavior:\n\nThe\sloop\sshould\scheck\sfor\s<\sinstead\sof\s!=.\n\n\n\nEither\sthat,\sor\sthere\scould\sbe\san\sif\sstatement\safter\sthe\n\nTcl_UtfBackslash\sstatement\schecking\sto\ssee\sif\sit\swent\sover,\sand\n\nrectifying\sthe\ssituation\sif\sit\sdid.\n\n\n\nPatch:\n\n***\stclUtil.c\s\s\sFri\sMay\s21\s19:20:13\s1999\n\n---\stclUtil.c.new\s\s\s\s\s\s\sTue\sOct\s\s5\s19:59:20\s1999\n\n***************\n\n***\s581,587\s****\n\n\s\s\s\s\s\sif\s((p\s==\slastChar)\s||\s(*p\s==\s'{')\s||\s(*p\s==\s'"'))\s{\n\n\s\s\s\s\s\s\s\sflags\s|=\sUSE_BRACES;\n\n\s\s\s\s\s\s}\n\n!\s\s\s\s\sfor\s(\s;\sp\s!=\slastChar;\sp++)\s{\n\n\s\s\s\s\s\s\s\sswitch\s(*p)\s{\n\n\s\s\s\s\s\s\s\s\s\s\s\scase\s'{':\n\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\snestingLevel++;\n\n---\s581,587\s----\n\n\s\s\s\s\s\sif\s((p\s==\slastChar)\s||\s(*p\s==\s'{')\s||\s(*p\s==\s'"'))\s{\n\n\s\s\s\s\s\s\s\sflags\s|=\sUSE_BRACES;\n\n\s\s\s\s\s\s}\n\n!\s\s\s\s\sfor\s(\s;\sp\s<\slastChar;\sp++)\s{\n\n\s\s\s\s\s\s\s\sswitch\s(*p)\s{\n\n\s\s\s\s\s\s\s\s\s\s\s\scase\s'{':\n\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\snestingLevel++;\n\n\n\nPatchFiles:\n\ntclUtil.c\n\n\n\nAdded\sto\s8.2.3.\s\n--\s12/04/1999\shobbs
J foundin obsolete:\s8.2.1
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 69.\sOther
J title Tcl_ScanCountedElement\scauses\ssigsegv\son\sinput\swith\s\\x\snear\s
J type Bug
K 218964ffffffffffffffffffffffffffffffffff
U nobody
Z 8a63cd24d09b62ce3175dacd8bf98d88