Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: c28a50492fdf382d7792bee962704d1307b21a03
Ticket: 530320ffffffffffffffffffffffffffffffffff
Buffer overrun in TclCompileTokens()
User & Date: nobody on 2002-03-15 14:29:18
Changes

  1. assignee changed to: "msofer"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    Bug found in Tcl 8.4a4, but also in 8.3.
    
    Reproductible script:
    
    proc bug {} {
       puts $array([expr {a+2}])
    }
    
    
    In generic/tclCompile.c, function TclCompileTokens(),
    line 1242: 
    
    sprintf(buffer,
            "\n    (parsing index for array \"%.*s\")",
    ((nameBytes > 100)? 100 : nameBytes), name);
    
    but buffer is large enough to contains TCL_UTF_MAX :(.
    
    
    
    
  4. foundin changed to: "None"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "nobody"
  9. subsystem changed to: "47. Bytecode Compiler"
  10. title changed to: "Buffer overrun in TclCompileTokens()"
  11. type changed to: "Bug"