Artifacts Associated With Ticket 2006342
Ticket change [c2039ef38e] (rid 111427) by mistachkin on 2008-06-30 03:37:54:
- assignee initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- 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. - foundin initialized to: "obsolete: 8.6a1"
- is_private initialized to: "0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "mistachkin"
- subsystem initialized to: "None"
- title initialized to: "[expr] can bypass [interp limit]"
- type initialized to: "Bug"
Ticket change [381cbb21ff] (rid 112151) by mistachkin on 2008-06-30 10:39:16:
- icomment:
Logged In: YES user_id=113501 Originator: YES This limitation applies to [interp cancel] as well.
- login: "mistachkin"
- mimetype: "text/plain"
- subsystem changed to: "20. [interp]"
- username: "mistachkin"
- icomment:
Ticket change [a87bb446df] (rid 99000) by dkf on 2008-07-13 15:41:20:
- assignee changed to: "kennykb"
- 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...
- login: "dkf"
- mimetype: "text/plain"
- subsystem changed to: "56. LibTomMath"
- username: "dkf"
Ticket change [aa5a9ecf7e] (rid 99310) by dkf on 2008-07-13 18:19:05:
- 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).
- login: "dkf"
- mimetype: "text/plain"
- username: "dkf"
- icomment: