Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 4038ee0f0213405e625290cdf51207ba8f3f1874
Ticket: 1752124fffffffffffffffffffffffffffffffff
Tcl_FSGetNormalizedPath is hairier monster
User & Date: dgp on 2007-07-12 02:13:22
Changes

  1. icomment:
    Logged In: YES 
    user_id=80530
    Originator: YES
    
    
    Was able to workaround the issue
    with changes to trofs.  The code which
    is not safe looks like:
    
    Tcl_FSGetNormalizedPath(NULL, 
        Tcl_FSJoinToPath(parent, 1, &element));
    
    where T_FSJTP can return a zero
    refcount Tcl_Obj, and T_FSGNP can
    free it just by trying to determine
    its normalized form.
    
    Probably should add warnings to the
    docs that it's not safe to pass
    zero refcount pathPtr values to
    T_FSGNP().
    
    
  2. login: "dgp"
  3. mimetype: "text/plain"
  4. priority changed to: "5 Medium"
  5. title changed to: "Tcl_FSGetNormalizedPath is hairier monster"
  6. username: "dgp"