In file macosx/PlatMacOSX.cxx:1631 variable text is deallocated
incorrectly.
Memory is allocated like this:
char* text = new char[maximumByteLength];
And released like this:
delete text;
Deleting like that causes undefined behavior according to the C++ standard.
It should be released like this:
delete [] text;
This bug was found using Cppcheck: http://cppcheck.wiki.sourceforge.net/
Neil Hodgson
Scintilla
Bug
Public
|
Date: 2009-04-28 04:13 Fix released in 1.78 |
|
Date: 2009-03-08 09:23 Committed. |
| Field | Old Value | Date | By |
|---|---|---|---|
| status_id | Open | 2009-04-28 04:13 | nyamatongwe |
| allow_comments | 1 | 2009-04-28 04:13 | nyamatongwe |
| close_date | - | 2009-04-28 04:13 | nyamatongwe |
| resolution_id | None | 2009-03-08 09:23 | nyamatongwe |
| assigned_to | nobody | 2009-03-08 09:23 | nyamatongwe |