Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2005-03-02
01:45 • Closed ticket [1153936fff]: Tcl_CreateObjTrace destroyes user-supplied clientDat... artifact: de973e8c68 user: msofer
2005-03-01
01:41 • New ticket [1153936fff]. artifact: b829e2f57b user: yurivict

Tcl_CreateObjTrace destroyes user-supplied clientData

Closed / Duplicate1153936fffffffffffffffffffffffffffffffffCreated 22 years agoUpdated 22 years ago
Descriptionplain2005-03-01 01:41:05
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
msoferplain2005-03-02 01:45:44
Logged In: YES 
user_id=148712

Duplicate of 1153871
Log in (anonymous is fine) to add a comment.