Artifacts Associated With Ticket 1115904
Ticket change [d23fcb346b] (rid 113504) by dgp on 2005-02-04 02:23:59:
- assignee initialized to: "msofer"
- cmimetype initialized to: "text/plain"
- comment initialized to:
Call Tcl_EvalEx() on a command with significant nesting of substitution... Tcl_Eval(interp, "foo [foo [foo [...]]]"); Tcl_EvalEx will call TclSubstTokens to do the command substitution for the argument. Which will turn around and recursively call Tcl_EvalEx to evaluate the command, etc. ...All without incrementing iPtr->numLevels... This means an arbitrary deep number of recursive calls to Tcl_EvalEx can happen without detection, evading the limitations meant to be imposed by [interp recursionlimit]. Eventually this can lead to stack overflow problems.
- foundin initialized to: "obsolete: 8.5a3"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "dgp"
- subsystem initialized to: "45. Parsing and Eval"
- title initialized to: "Tcl_EvalEx can evade recursion limit"
- type initialized to: "Bug"
Ticket change [4251e18450] (rid 116348) by dgp on 2005-02-04 09:39:59:
- icomment:
File Added - 118493: 1115904.patch Logged In: YES user_id=80530 Attached patch corrects the bug, but also changes $::errorInfo in some situations, causing test basic-46.4 to fail. Comment?
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [ce02caa11f] (rid 95985) by dgp on 2005-02-04 21:47:33:
- icomment:
Logged In: YES user_id=80530 that patch doesn't fix the issue after all. There's no call to TclInterpReady() in that code path either, so no chance to detect the recursion limit. Thoughts?
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [5f02f84d37] (rid 115738) by dgp on 2005-02-04 22:01:04:
- icomment:
Logged In: YES user_id=80530 appears that this issue dates all the way back to the arrival of Tcl_EvalEx around Tcl 8.1.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [52b2ab747f] (rid 126361) by dgp on 2005-02-04 23:56:41:
- icomment:
Logged In: YES user_id=80530 Here's a better patch with tests. Please review and apply if acceptable.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [6838ca0e6e] (rid 103024) by dgp on 2005-02-04 23:56:42:
- icomment:
File Added - 118584: 1115904.patch
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Add attachment "1115904.patch" [730f5bc16b] (rid 104980) by dgp on 2005-02-04 23:56:42.
Ticket change [ec734007e7] (rid 103710) by dgp on 2005-02-04 23:56:43:
- icomment:
File Deleted - 118493:
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [add706e322] (rid 101526) by msofer on 2005-03-18 22:29:38:
- icomment:
Logged In: YES user_id=148712 Nice patch - commit please
- login: "msofer"
- mimetype: "text/plain"
- username: "msofer"
- icomment:
Ticket change [2b73b87e5f] (rid 118746) by dgp on 2005-03-18 22:51:49:
- assignee changed to: "dgp"
- icomment:
Logged In: YES user_id=80530 fixed in HEAD (8.5a3)
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
Ticket change [dc0f811322] (rid 108063) by dgp on 2005-03-18 23:34:46:
- closedate changed to: "2005-03-18T16:34:46"
- closer changed to: "dgp"
- icomment:
Logged In: YES user_id=80530 here's the corresponding patch for 8.4. Note that more patching is required because in Tcl 8.4, script evaluation substitution and [subst] substitution haven't been unified as they have in Tcl 8.5. Committing for 8.4.10
- login: "dgp"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- username: "dgp"
Add attachment "1115904-84.patch" [a7b3bd2324] (rid 98856) by dgp on 2005-03-18 23:34:47.
Ticket change [cfdb2f04c3] (rid 113062) by dgp on 2005-03-18 23:34:47:
- icomment:
File Added - 126252: 1115904-84.patch
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment: