Skip to content

[Regression] "Copy Binary Content" crashes NPP if there is no selection #11671

@Yaron10

Description

@Yaron10

STR:
Make sure no text is selected.
Edit -> Paste Special -> Copy Binary Content.

Result:
NPP crashes.

Caused by:

size_t textLen = _pEditView->execute(SCI_GETSELTEXT, 0, 0) - 1;

See #11639.


Notepad++ v8.4 (64-bit)
Build time : May 5 2022 - 12:05:23
Path : C:---Notepad++ Original.exe
Command Line :
Admin mode : ON
Local Conf mode : ON
Cloud Config : OFF
OS Name : Windows 10 Pro (64-bit)
OS Version : 2009
OS Build : 19042.985
Current ANSI codepage : 1255
Plugins : ComparePlus.dll HTMLTag.dll MenuIcons.dll PythonScript.dll _CustomizeToolbar.dll

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions