.
D 2007-10-15T05:34:10
J assignee msofer
J cmimetype text/plain
J comment \nThis\sbug\sis\spresent\sin\sboth\s8.4\sand\s8.5\s(HEAD).\n\nIn\sTcl_ParseBraces,\snear\sline\s1671\sin\sHEAD\swe\ssee:\n\nsrc\s=\sstart;\n\nA\scouple\slines\slater,\ssrc\sis\supdated\sin\sa\sloop:\n\nwhile\s(++src,\s--numBytes)\s{\n<snip>\n\nIf\sthis\sloop\sterminates\sdue\sto\snumBytes\sbeing\szero,\ssrc\smay\spoint\sone\scharacter\sbeyond\sthe\send\sof\sthe\sstring.\n\nThe\sreal\sproblem\sarises\sin\sthe\serror\shandling\scode\sthat\sattempts\sto\ssearch\sbackwards\sfor\sthe\sopen\sbrace\sinside\sof\sa\scomment,\snear\sline\s1788:\n\nfor\s(;\ssrc\s>\sstart;\ssrc--)\s{\n\s\s\s\sswitch\s(*src)\s{\n<snip>\n\nAt\sthe\spoint\sthe\sswitch\sstatement\sis\sexecuted,\ssrc\sstill\smay\spoint\sone\scharacter\sbeyond\sthe\send\sof\sthe\sstring.\n\nA\spossible\sfix\sfor\sthis\sissue\sis\sto\schange\sthe\sloop\sas\sfollows:\n\nfor\s(src--;\ssrc\s>\sstart;\ssrc--)\s{\n\s\s\s\sswitch\s(*src)\s{\n<snip>\n
J foundin obsolete:\s8.5b1
J is_private 0
J priority 5\sMedium
J resolution None
J status Open
J submitter mistachkin
J subsystem 45.\sParsing\sand\sEval
J title off-by-one\serror\sin\sparser\sunbalanced\sbrace\sin\scomment\scheck
J type Bug
K 1813528fffffffffffffffffffffffffffffffff
U mistachkin
Z 43e4e5b9e41c2f79f15ca0f91a46743d