Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: d98b4fdc9102ee361828bce31d35068980bcc2a2
Ticket: 1153871fffffffffffffffffffffffffffffffff
Tcl_CreateObjTrace destroyes user-supplied clientData
User & Date: yurivict on 2005-02-28 23:20:31
Changes

  1. assignee changed to: "msofer"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    Caller supplied clientData argument to Tcl_CreateObjTrace.
    
    OBSERVE\D PROBLEM:
      coredump, analysis shows that clientData pointer
    supplied by user was typecasted to the pointer to the
    private structure TraceCommandInfo defined only in
    tclCmdMZ.c:
    
    tclCmdMZ.c:4318:
      tcmdPtr = (TraceCommandInfo*)tracePtr->clientData;
      tcmdPtr->curFlags = traceFlags;
      tcmdPtr->curCode  = code;
    
    and subsequent assignments to TraceCommandInfo destroy
    user-owned memory area.
    
    Yuri
    
  4. foundin changed to: "obsolete: 8.4.9"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "yurivict"
  9. subsystem changed to: "10. Objects"
  10. title changed to:
    Tcl_CreateObjTrace destroyes user-supplied clientData
    
  11. type changed to: "Bug"