Skip to content
Tcl Source Code History Of Ticket 940281ffffffffff
Login

History Of Ticket 940281ffffffffff

Artifacts Associated With Ticket 940281ffffffffff

  1. Ticket change [f3751f34e4] (rid 129721) by dgp on 2004-04-22 20:04:58:

    1. assignee initialized to: "vincentdarley"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      
      Docs claim that Tcl_FSJoinPath returns
      a (Tcl_Obj *) -- the joined path.  However,
      it sometimes returns NULL instead.
      
      Notably, it returns NULL if an invalid list
      is passed in as the listObj argument.
      That makes some sense, though a
      Tcl_Panic() might be just a suitable.
      The caller is simply broken.  Either
      way that should be documented.
      
      The more serious problem is when
      listObj is a valid list, but a value of
      0 is passed as the elements argument.
      Then NULL is returned instead of an
      empty string path.  This  breaks
      simple uses like:
      
       elements = Tcl_FSSplitPath(path, &count);
       Tcl_IncrRefCount(elements);
       parent = Tcl_FSJoinPath(elements, count -1);
       Tcl_IncrRefCount(parent);       /* possible CRASH! */
       Tcl_ListObjIndex(NULL, elements, count - 1, &tail);
       Tcl_IncrRefCount(tail);
       Tcl_DecrRefCount(elements);
      
      
      
    4. foundin initialized to: "obsolete: 8.5a2"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "dgp"
    9. subsystem initialized to: "37. File System"
    10. title initialized to: "Tcl_FSJoinPath not as documented"
    11. type initialized to: "Bug"
  2. Ticket change [d6d6e41be4] (rid 123876) by dgp on 2004-04-23 03:30:23:

    1. icomment:
      
      
      File Added - 84717: 940281.patch
      
      Logged In: YES 
      user_id=80530
      
       Here's a possible patch to try.
      Causes no harm to the test
      suite here.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  3. Add attachment "940281.patch" [6db25f341f] (rid 128746) by dgp on 2004-04-23 03:30:23.

  4. Ticket change [afc47934ff] (rid 97870) by vincentdarley on 2004-04-23 18:56:01:

    1. closedate changed to: "2004-04-23T11:56:01"
    2. closer changed to: "vincentdarley"
    3. icomment:
      Logged In: YES 
      user_id=32170
      
      Thank you.  Will commit fix asap.
      
      
      
    4. login: "vincentdarley"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "vincentdarley"