| Ticket UUID: | 3116922 | |||
| Title: | memory error in tk_get*File on Windows | |||
| Type: | Bug | Version: | obsolete: 8.5.9 | |
| Submitter: | treectrl | Created on: | 2010-11-23 21:12:43 | |
| Subsystem: | 37. [tk_get*File] | Assigned To: | hobbs | |
| Priority: | 5 Medium | Severity: | ||
| Status: | Closed | Last Modified: | 2010-11-24 08:06:44 | |
| Resolution: | Duplicate | Closed By: | treectrl | |
| Closed on: | 2010-11-24 01:06:44 | |||
| Description: |
In tkWinDialog.c, OFNHookProcW, when browsing in the "Recent Places" directory, this call:
dirsize = SendMessageW(hdlg, CDM_GETFOLDERPATH, 0, 0);
results in dirsize == -1. Then:
buffer += dirsize
SendMessageW(hdlg, CDM_GETSPEC, selsize, (int) buffer);
writes before the start of the buffer. Then:
buffer[selsize] = '\0';/* Second NULL terminator. */
buffer--;
*buffer = '\\';
again writes before the start, all causing ckrealloc() to later fail
due to the ofnData->dynFileBuffer getting messed up.
| |||
| User Comments: |
treectrl added on 2010-11-24 08:06:44:
Duplicate of ID: 3071836. treectrl added on 2010-11-24 08:02:23: Probably the cause of BUG 3095112. | |||
Home
Timeline
Branches
Tags
Forum
Tickets
Download
Wiki