notepad-plus-plus/PowerEditor
xomx 126505180f Fix potential crash when crossing the 2GB file size threshold
To be able to work with 2GB+ files, we have to use the Scintilla SC_DOCUMENTOPTION_TEXT_LARGE flag.

Until now, this flag was only used if a file > 2GB was to be loaded. For files smaller than 2GB or newly created empty ones, it was not used. This left the room for a Notepad++ crash situation because of the user has been left the possibility to cross this threshold (e.g. by pasting a data which in sum with the already existing ones in the Notepad++ filebuffer exceeds that 2GB...)

So one has two options: either a complex monitoring of the Notepad++ filebuffers size and reloading these with that large-flag when reaching the 2GB or simply using that large-flag as the default one from the start (which is what this patch does...).

Fix #14981, close #14982
2024-04-14 14:35:26 +02:00
..
Test Add more unit tests for Function List of Python 2024-02-07 22:30:55 +01:00
bin Notepad++ release 8.6.5 2024-03-30 01:02:22 +01:00
gcc Readd dpi API 2024-04-02 01:44:52 +02:00
installer Add syntax highlighting for Go/Golang 2024-04-11 17:58:43 +02:00
misc/chameleon Remove the old icon 2016-09-21 09:06:22 +02:00
scintilla.original.forUpdating Update to scintilla 5.4.3 (from 5.4.1) & Lexilla 5.3.1 2024-03-11 04:13:10 +01:00
src Fix potential crash when crossing the 2GB file size threshold 2024-04-14 14:35:26 +02:00
visual.net Readd dpi API 2024-04-02 01:44:52 +02:00