notepad-plus-plus/PowerEditor/src
Don HO 10f6ff6c1f
Fix a crash (regression) due to "new-less" of NppParameters
The commit 'Make NppParameters singleton "new-less"' make NppParameters instantiate in the stack instead of allocating in the heap:
3dbb2c4b8e

It makes Notepad++ crash:
https://community.notepad-plus-plus.org/topic/18316/notepad-7-8-release-candidate-3/4

The crash is on following code:

  vector<MacroShortcut> & vShortcuts = NppParameters::getInstance().getMacroList();
  size_t nbItems = vShortcuts.size();
  for (size_t itemIndex2 = 0; itemIndex2 < nbItems; ++itemIndex2)
  {
  ...

vShortcuts.size() here return a random large number, which makes crash.

The explanation about vector::size() unexpected behaviour:
https://stackoverflow.com/questions/30548944/c-vector-size-is-wrong-and-higher-than-the-number-of-elements

Obviously the stack size is not large enough to contain NppParameters singleton in 64 bits.
2019-10-03 14:05:50 +02:00
..
MISC Use standard C++11 mutex 2019-08-25 23:34:30 +02:00
ScitillaComponent BaanC Add keyword lists and respective langs & styler xml tags 2019-09-25 09:53:25 +02:00
TinyXml Remove ugly coding style 2019-03-16 05:33:50 +01:00
WinControls Use standard C++11 mutex 2019-08-25 23:34:30 +02:00
cursors
icons Restore conventional chameleon icon 2019-06-16 15:29:46 +02:00
json
tools Remove unnecessary sub-projects 2019-04-06 18:00:43 +02:00
uchardet Revert "Update uchardet to 0.0.6 to improve UTF-8 detection quality" 2019-03-25 19:35:15 +01:00
CMakeLists.txt
EncodingMapper.cpp Make EncodingMapper singleton "new-less" 2019-08-10 19:32:57 +02:00
EncodingMapper.h Code improvement for EncodingMapper 2019-08-14 01:15:08 +02:00
Notepad_plus.cpp Add a good geek joke 2019-09-15 23:34:35 +02:00
Notepad_plus.h Add "No to All" and "Yes to All" options in Save dialog 2019-07-03 09:41:35 +02:00
Notepad_plus.rc Disambiguate 5 entries regarding encoding 2019-07-30 20:24:59 +02:00
Notepad_plus_Window.cpp Code improvement for NppParameters 2019-08-14 22:13:24 +02:00
Notepad_plus_Window.h Code quality improvement: pass string by reference instead of value 2019-06-25 14:21:35 +02:00
NppBigSwitch.cpp Code enhancement: Function arguments pass by reference 2019-08-18 01:16:23 +02:00
NppCommands.cpp Fix macro playback crash issue 2019-10-02 03:18:31 +02:00
NppIO.cpp Remove ATL (part one) 2019-08-25 00:14:42 +02:00
NppNotification.cpp Code improvement for NppParameters 2019-08-14 22:13:24 +02:00
Parameters.cpp Increase Keyword Set for the adaptation of new updated Scintilla 2019-08-23 11:29:45 +02:00
Parameters.h Fix a crash (regression) due to "new-less" of NppParameters 2019-10-03 14:05:50 +02:00
StaticControl.h
UniConversion.cpp
UniConversion.h
Utf8.h
Utf8_16.cpp
Utf8_16.h
clipboardFormats.h
config.4zipPackage.xml Notepad++ 7.6.5 release 2019-03-31 23:23:07 +02:00
contextMenu.xml
dpiAware.manifest
dpiManager.h Code enhancement: Use C++11 =default & =delete for the constructor & destructor 2019-08-19 02:05:21 +02:00
functionList.xml Add PL/SQL to FunctionList 2019-08-04 12:40:55 +02:00
keys.h
langs.model.xml BaanC Add keyword lists and respective langs & styler xml tags 2019-09-25 09:53:25 +02:00
lastRecentFileList.cpp Code improvement for NppParameters 2019-08-14 22:13:24 +02:00
lastRecentFileList.h Code enhancement: Use C++11 =default & =delete for the constructor & destructor 2019-08-19 02:05:21 +02:00
lesDlgs.cpp
lesDlgs.h Code enhancement: Use C++11 =default & =delete for the constructor & destructor 2019-08-19 02:05:21 +02:00
localization.cpp Code improvement for NppParameters 2019-08-14 22:13:24 +02:00
localization.h
localizationString.h
menuCmdID.h Added close unchanged tabs command 2019-03-26 13:11:15 +01:00
notepad++.exe.manifest
resource.h Add "No to All" and "Yes to All" options in Save dialog 2019-07-03 09:41:35 +02:00
rgba_icons.h
shortcuts.xml
stylers.model.xml BaanC Add keyword lists and respective langs & styler xml tags 2019-09-25 09:53:25 +02:00
toolbarIcons.xml
userDefineLang.xml
winmain.cpp Code improvement for NppParameters 2019-08-14 22:13:24 +02:00