Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: b445b6bcac419c3722dc00a5cb45d9e6d85bc69c
Ticket: 1036649fffffffffffffffffffffffffffffffff
Buffer overrun in [subst]
User & Date: dkf on 2004-09-28 23:22:08
Changes

  1. assignee changed to: "dgp"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    This is not a problem in the HEAD.
    
    Repeatedly do this command.  The error result is always
    strange and occasionally it crashes.  (Seems random which.)
      subst {[set x 1;}
    
    GDB claims crash happened like this:
    Program received signal SIGSEGV, Segmentation fault.
    0x0807e5ab in Tcl_SubstObj (interp=0x8103390,
    objPtr=0x810bd10, flags=7)
        at ../generic/tclCmdMZ.c:2578
    2578            switch (*p) {
    The 'p' pointer seems to have overflowed well past the
    end of the objPtr->bytes parameter:
    (gdb) print p
    $1 = 0x812c000 <Address 0x812c000 out of bounds>
    (gdb) print objPtr->bytes
    $2 = 0x8127788 "[set x 1;"
    
    Looks like a buffer overrun to me, and [subst] is often
    exposed to external sources. => CRITICAL BUG
    
  4. foundin changed to: "obsolete: 8.4.7"
  5. priority changed to: "9 Immediate"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "dkf"
  9. subsystem changed to: "18. Commands M-Z"
  10. title changed to: "Buffer overrun in [subst]"
  11. type changed to: "Bug"