Notepad_plus.cpp, lines 4514–4526)
The issue occurs when a user drags and drops a directory path of exactly 259 characters (MAX_PATH - 1) without a trailing backslash into the Notepad++ window.
During processing, the application attempts to append:
\)
However, due to insufficient bounds checking, this results in writing beyond the allocated buffer (wchar_t pathDropped[MAX_PATH]), causing a stack buffer overflow.
STATUS_STACK_BUFFER_OVERRUN (0xC0000409) error, leading to:
As of now, no official patch has been released, so users are advised to take precautionary measures: