Overview
| Artifact ID: | 2c52ee5026eba6a5bca06fd4a003f2e1ea2fe952 |
|---|---|
| Ticket: | 1225571fffffffffffffffffffffffffffffffff
Stack overrun in Win32 TclpFilesystemPathType |
| User & Date: | patthoyts on 2005-06-22 14:25:29 |
Changes
- assignee changed to: "vincentdarley"
- cmimetype changed to: "text/plain"
- 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.
- foundin changed to: "obsolete: 8.4.11"
- priority changed to: "7 High"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "patthoyts"
- subsystem changed to: "37. File System"
- title changed to: "Stack overrun in Win32 TclpFilesystemPathType"
- type changed to: "Bug"