Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: c2039ef38ebcb3be14426f7a8b7be4fee7874993
Ticket: 2006342fffffffffffffffffffffffffffffffff
[expr] can bypass [interp limit]
User & Date: mistachkin on 2008-06-30 03:37:54
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed 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 changed to: "obsolete: 8.6a1"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "mistachkin"
  10. subsystem changed to: "None"
  11. title changed to: "[expr] can bypass [interp limit]"
  12. type changed to: "Bug"