Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: d23fcb346bf340292760f860d5c51e4f749c240b
Ticket: 1115904fffffffffffffffffffffffffffffffff
Tcl_EvalEx can evade recursion limit
User & Date: dgp on 2005-02-04 02:23:59
Changes

  1. assignee changed to: "msofer"
  2. cmimetype changed to: "text/plain"
  3. comment changed 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.
    
  4. foundin changed to: "obsolete: 8.5a3"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "dgp"
  9. subsystem changed to: "45. Parsing and Eval"
  10. title changed to: "Tcl_EvalEx can evade recursion limit"
  11. type changed to: "Bug"