Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 13f200db8c3dfc22b52f355e55025ab4ec9a447e
Ticket: 3479689fffffffffffffffffffffffffffffffff
shimmer 0-refcount to path can segfault
User & Date: dgp on 2012-01-25 17:43:37
Changes

  1. assignee changed to: "dgp"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    
    Tcl_FSConvertToPathType(NULL, Tcl_NewStringObj("a//b",-1));
    
    will crash at least on unix systems in a -enable-symbols=mem build
    of Tcl.
    
    This passes a 0-refcount value to SetFsPathFromAny() which
    passes it on to Tcl_FSJoinToPath().  As documented, on exit
    Tcl_FSJoinToPath() frees the value, but then SetFsPathFromAny()
    continues on, trying to build a "path" intrep in the freed space.  BOOM!
    
  4. foundin changed to: "obsolete: 8.5.11"
  5. is_private changed to: "0"
  6. priority changed to: "8"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "dgp"
  10. subsystem changed to: "37. File System"
  11. title changed to: "shimmer 0-refcount to path can segfault"
  12. type changed to: "Bug"