Artifacts Associated With Ticket 3192636fffffffff
Ticket change [8daa4a5b8e] (rid 127974) by dgp on 2011-02-25 21:27:25:
- assignee initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
The TclFindElement() routine accepts a pair of arguments (CONST char *list) and (int listLength) which determine the string to be parsed. Examination of that string ought not continue beyond the byte (list + listLength) but if that point happens in the middle of a backslash escape sequence, nothing is done to prevent it. Looking for any ways to demo this via public access...
- foundin initialized to: "None"
- is_private initialized to: "0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "dgp"
- subsystem initialized to: "None"
- title initialized to: "TclFindElement permits buffer overrun"
- type initialized to: "Bug"
Ticket change [7aaa5a072e] (rid 90370) by dgp on 2011-02-26 04:49:26:
- icomment:
% testparser {{*}\u218} 8 - {{*}\u218} 1 expand {{*}\u218} 1 backslash {\u218} 0 {} % testparser {{*}\u218} 7 - \{*\}\\u218\}¾r\n 1 expand \{*\}\\u218\}¾r 12 backslash {\u218} 0 text 0 text \} 0 text 0 text 0 text ¾ 0 text 0 text 0 text 0 text r 0 text 0 text 0 {} - login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [b0c6287867] (rid 98036) by dgp on 2011-03-05 14:38:58:
- icomment:
That actually demos a different bug in TclParseBackslash.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [ea04d7cb88] (rid 104904) by dgp on 2011-03-06 11:36:57:
- icomment:
see 3200987
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [8c03df5d7c] (rid 127681) by dgp on 2011-03-07 00:53:50:
- assignee changed to: "dgp"
- closedate changed to: "2011-03-06T17:53:50"
- closer changed to: "dgp"
- foundin changed to: "obsolete: 8.5.9"
- icomment:
OK, with that bug fixed, there's no way a script can run into this problem. We can declare it "not a bug" so long as we add a precondition for all callers of this private routine that *(list+listLength) == `\0` . Since most of the time, the string being parsed is the bytes field of a Tcl_Obj, this is usually easily satisfied.
- login: "dgp"
- mimetype: "text/plain"
- resolution changed to: "Wont Fix"
- status changed to: "Pending"
- subsystem changed to: "45. Parsing and Eval"
- username: "dgp"
Ticket change [84b4e9ad10] (rid 117605) by dgp on 2011-03-07 02:53:13:
- icomment:
Nah, it's too simple a fix not to fix it. The only real snag is no easy way to add a test.
- login: "dgp"
- mimetype: "text/plain"
- status changed to: "Open"
- username: "dgp"
- icomment:
Ticket change [07c71a7834] (rid 89464) by dgp on 2011-03-07 03:07:44:
- closedate changed to: "2011-03-06T20:07:44"
- closer changed to: "dgp"
- icomment:
allow_comments - 1 fixed in all open branches
- login: "dgp"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- username: "dgp"