Skip to content
Tcl Source Code History Of Ticket 1115904
Login

History Of Ticket 1115904

Artifacts Associated With Ticket 1115904

  1. Ticket change [d23fcb346b] (rid 113504) by dgp on 2005-02-04 02:23:59:

    1. assignee initialized to: "msofer"
    2. cmimetype initialized to: "text/plain"
    3. 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.
      
    4. foundin initialized to: "obsolete: 8.5a3"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "dgp"
    9. subsystem initialized to: "45. Parsing and Eval"
    10. title initialized to: "Tcl_EvalEx can evade recursion limit"
    11. type initialized to: "Bug"
  2. Ticket change [4251e18450] (rid 116348) by dgp on 2005-02-04 09:39:59:

    1. 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?
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  3. Ticket change [ce02caa11f] (rid 95985) by dgp on 2005-02-04 21:47:33:

    1. 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?
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  4. Ticket change [5f02f84d37] (rid 115738) by dgp on 2005-02-04 22:01:04:

    1. 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.
      
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  5. Ticket change [52b2ab747f] (rid 126361) by dgp on 2005-02-04 23:56:41:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      
      Here's a better patch with tests.
      Please review and apply if acceptable.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  6. Ticket change [6838ca0e6e] (rid 103024) by dgp on 2005-02-04 23:56:42:

    1. icomment:
      
      
      File Added - 118584: 1115904.patch
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  7. Add attachment "1115904.patch" [730f5bc16b] (rid 104980) by dgp on 2005-02-04 23:56:42.

  8. Ticket change [ec734007e7] (rid 103710) by dgp on 2005-02-04 23:56:43:

    1. icomment:
      
      
      File Deleted - 118493: 
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  9. Ticket change [add706e322] (rid 101526) by msofer on 2005-03-18 22:29:38:

    1. icomment:
      Logged In: YES 
      user_id=148712
      
      Nice patch - commit please
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. username: "msofer"
  10. Ticket change [2b73b87e5f] (rid 118746) by dgp on 2005-03-18 22:51:49:

    1. assignee changed to: "dgp"
    2. icomment:
      Logged In: YES 
      user_id=80530
      
      fixed in HEAD (8.5a3)
      
      
    3. login: "dgp"
    4. mimetype: "text/plain"
    5. username: "dgp"
  11. Ticket change [dc0f811322] (rid 108063) by dgp on 2005-03-18 23:34:46:

    1. closedate changed to: "2005-03-18T16:34:46"
    2. closer changed to: "dgp"
    3. 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
      
      
    4. login: "dgp"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "dgp"
  12. Add attachment "1115904-84.patch" [a7b3bd2324] (rid 98856) by dgp on 2005-03-18 23:34:47.

  13. Ticket change [cfdb2f04c3] (rid 113062) by dgp on 2005-03-18 23:34:47:

    1. icomment:
      
      
      File Added - 126252: 1115904-84.patch
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"