Skip to content
Tcl Source Code History Of Ticket 2006342
Login

History Of Ticket 2006342

Artifacts Associated With Ticket 2006342

  1. Ticket change [c2039ef38e] (rid 111427) by mistachkin on 2008-06-30 03:37:54:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      
      The arbitrary-precision integers support in [expr] can cause it to run for quite some time; however, it cannot currently be interrupted by [interp limit].  For safe interpreters, this could lead to a potential denial-of-service.
      
      Example:
      
      % info patchlevel
      8.5.2
      % set i [interp create]
      interp0
      % interp limit $i time -seconds [expr {[clock seconds] + 10}]
      % interp limit $i time
      -command {} -granularity 10 -milliseconds 0 -seconds 1214796621
      % interp eval $i {expr 2**9999999}
      
      The above script does not return even after the limit has elapsed.
      
      
    4. foundin initialized to: "obsolete: 8.6a1"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "mistachkin"
    10. subsystem initialized to: "None"
    11. title initialized to: "[expr] can bypass [interp limit]"
    12. type initialized to: "Bug"
  2. Ticket change [381cbb21ff] (rid 112151) by mistachkin on 2008-06-30 10:39:16:

    1. icomment:
      Logged In: YES 
      user_id=113501
      Originator: YES
      
      
      This limitation applies to [interp cancel] as well.
      
      
    2. login: "mistachkin"
    3. mimetype: "text/plain"
    4. subsystem changed to: "20. [interp]"
    5. username: "mistachkin"
  3. Ticket change [a87bb446df] (rid 99000) by dkf on 2008-07-13 15:41:20:

    1. assignee changed to: "kennykb"
    2. icomment:
      Logged In: YES 
      user_id=79902
      Originator: NO
      
      The only way to deal with this nicely is to add limit checks to the bignum engine. I don't know that we want to do that...
      
      
    3. login: "dkf"
    4. mimetype: "text/plain"
    5. subsystem changed to: "56. LibTomMath"
    6. username: "dkf"
  4. Ticket change [aa5a9ecf7e] (rid 99310) by dkf on 2008-07-13 18:19:05:

    1. icomment:
      Logged In: YES 
      user_id=79902
      Originator: NO
      
      BTW, on a fast modern machine where we're not running into swapping problems, that computation will take on the order of 10 minutes to perform, and that's excluding the cost of generating a string representation of it (which would probably be at least as long again).
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"