Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 2c52ee5026eba6a5bca06fd4a003f2e1ea2fe952
Ticket: 1225571fffffffffffffffffffffffffffffffff
Stack overrun in Win32 TclpFilesystemPathType
User & Date: patthoyts on 2005-06-22 14:25:29
Changes

  1. assignee changed to: "vincentdarley"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    Running some tcl 8.4.11 tcl tests under BoundsChecker
    on WinXP I spotted a "Stack memory overrun" in
    TclpFilesystemPathType().
    
    tclWinFile.c:2101 the volType is declared as char[] and
    VOL_BUF_SIZE is set to 32 but this value in the size in
    TCHARs so when we use the GetVolumeInformationW API our
    buffer is in fact half the size it should be.
    
    The following patch eliminates the warning from
    BoundsChecker by forcing the buffer to be WCHAR and
    therefore big enough.
    
  4. foundin changed to: "obsolete: 8.4.11"
  5. priority changed to: "7 High"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "patthoyts"
  9. subsystem changed to: "37. File System"
  10. title changed to: "Stack overrun in Win32 TclpFilesystemPathType"
  11. type changed to: "Bug"