Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Creating Snippet from Selection crashes Notepad++ #14
When using the user interface to create snippets:
If the selection in the Notepad++ document is copied to the clipboard the process works if "Add from Clipboard" is selected the process works as expected.
Notepad++ Version 7.5.3 (64 bit)
Callstack for the problem of adding a new entry with name "test" and empty "before cursor" entry:
this is caused by sql table definition for snippets:
and SqliteStatement::Bind(int col, const WCHAR* val)
, which sets empty input to null.
Issue with selections is caused by a buffer overrun issue in:
with the handling of MultiByteToWideChar (https://docs.microsoft.com/en-us/windows/desktop/api/stringapiset/nf-stringapiset-multibytetowidechar) not using size of chars correctly.