notepad-plus-plus/scintilla/include
Don Ho 88ee2eddb0 Fix the crash regression due to the array size increase
LexerStylerArray contains a MAX_LEXER_STYLE-element array (currently 100) of LexerStyler objects. Every one of them in turn via inheritance from StyleArray contains a SCE_STYLE_ARRAY_SIZE-element array (I tested with 99) of Style objects each at least 56 bytes in size. This in my test case requires over 550k of memory, and if LexerStylerArray is allocated on stack, the stack becomes corrupted. (Ref: https://github.com/notepad-plus-plus/notepad-plus-plus/issues/10454#issuecomment-908732786)

Inline arrays are a part of an object and increase its size while std::vector uses memory from the heap and stores internally only a pointer to a chunk of memory, thus the size of an object with a vector is substantially smaller than the one with an inline array. (Ref: https://github.com/notepad-plus-plus/notepad-plus-plus/issues/10454#issuecomment-908780106)

Fix #10454, fix #10206
2021-08-31 01:38:55 +02:00
..
BoostRegexSearch.h Catch regex search exceptions and show exception message 2021-03-24 01:24:24 +01:00
ILexer.h Upgrade Scintilla from v4.2.0 to v4.4.6 2021-02-21 19:14:40 +01:00
ILoader.h Upgrade Scintilla from v3.56 to v4.14 2019-05-04 21:14:48 +03:00
Platform.h Upgrade Scintilla from v4.2.0 to v4.4.6 2021-02-21 19:14:40 +01:00
SciLexer.h Fix the crash regression due to the array size increase 2021-08-31 01:38:55 +02:00
Sci_Position.h Upgrade Scintilla from v3.56 to v4.14 2019-05-04 21:14:48 +03:00
Scintilla.h Catch regex search exceptions and show exception message 2021-03-24 01:24:24 +01:00
Scintilla.iface Upgrade Scintilla from v4.2.0 to v4.4.6 2021-02-21 19:14:40 +01:00
ScintillaWidget.h Upgrade Scintilla from v3.56 to v4.14 2019-05-04 21:14:48 +03:00