
Notepad++(x86) in 8.4.3 and before.e.g. first.txt & second.txt) as input to notepad++.As an illustrative example below, as of 11/07/2022, latest version of Notepad++(x86) is 8.4.3 is used.



Here we can see the problem to parse these files in ScintallComponent -> Editor.h -> Line number 690.
When notepad++ opens any file it calls a function notepad_plus::addHotSpot which creates heap memory with new operator and stores the return address in widetext variable
TCHAR *wideText = new TCHAR[endPos - startPos + 1];. Since it requests for large allocation, new returns bad_alloc which is not handled in notepad++ and results in DoS.
So it can be said that, opening the two example files with Notepad++(x86) <= 8.4.3 is leading to Denial of Service.
The vulnerability is tested to work on following version:
Notepad++ versions 8.4.8 (32-bit) and before.Notepad++ versions 8.4.9 (32-bit) and before.