Artifacts Associated With Ticket 1968245
Ticket change [8aa9d207a5] (rid 127430) by cdarroch on 2008-05-20 20:36:38:
- assignee initialized to: "msofer"
- cmimetype initialized to: "text/plain"
- comment initialized to:
With Tcl 8.5.2, Tcl_LogCommandInfo() uses its length argument in the following test before checking whether length is negative, which a caller may use to indicate that all bytes of the command argument (up to the first null byte) should be used. At least, the documentation and code comments imply this is how the function should operate, and it used to accept -1 as a length value in 8.4. Attached is a simple patch which checks for this and uses strlen() to determine the length of the command string.
- foundin initialized to: "obsolete: 8.5.2"
- is_private initialized to: "0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "cdarroch"
- subsystem initialized to: "45. Parsing and Eval"
- title initialized to: "Tcl_LogCommandInfo() fails with length == -1"
- type initialized to: "Bug"
Add attachment "tclNamesp.c.patch" [a30c3f353a] (rid 109994) by cdarroch on 2008-05-21 03:36:39.
Ticket change [c13f00c515] (rid 111288) by cdarroch on 2008-05-21 03:36:39:
- icomment:
File Added - 278472: tclNamesp.c.patch
- login: "cdarroch"
- mimetype: "text/plain"
- username: "cdarroch"
- icomment:
Ticket change [8cebc6c84b] (rid 127820) by cdarroch on 2008-05-21 03:39:43:
- icomment:
Logged In: YES user_id=637999 Originator: YES Sorry, that wasn't particularly clear. The test in question is: overflow = (length > limit); I believe length needs to be non-negative before this test is performed.
- login: "cdarroch"
- mimetype: "text/plain"
- username: "cdarroch"
- icomment:
Ticket change [ec99a352c0] (rid 103734) by dgp on 2008-05-21 20:42:08:
- assignee changed to: "dgp"
- priority changed to: "7 High"
Ticket change [b66a396e82] (rid 125418) by dgp on 2008-05-22 22:14:10:
- icomment:
Logged In: YES user_id=80530 Originator: NO 2005-09-14 commit to tclBasic.c introduced this bug.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [2a305b5446] (rid 118512) by dgp on 2008-05-22 22:18:32:
- closedate changed to: "2008-05-22T15:18:32"
- closer changed to: "dgp"
- icomment:
Logged In: YES user_id=80530 Originator: NO Fixed on HEAD and for 8.5.3
- login: "dgp"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- username: "dgp"