Skip to content

Loading/Pasting included string causes program to hang #13916

@CHRONOMASTER

Description

@CHRONOMASTER

Description of the Issue

Notepad++ hangs (Not Responding) when trying to load or pasting the included one line string.
bug.txt

Steps to Reproduce the Issue

Open the attached txt file or paste its contents

Expected Behavior

txt file load/paste normally.

Actual Behavior

txt file attempts to load, then program hangs. If pasting, the string displays and immediately the program hangs.

Debug Information

Notepad++ v8.5.4 (64-bit)
Build time : Jun 17 2023 - 20:42:45
Path : C:\Program Files\Notepad++\notepad++.exe
Command Line : -noPlugin
Admin mode : OFF
Local Conf mode : OFF
Cloud Config : OFF
OS Name : Windows 10 Pro (64-bit)
OS Version : 22H2
OS Build : 19045.3208
Current ANSI codepage : 1252
Plugins : none

It looks like Notepad++ is trying to parse the string as a url.
When the program has stopped responding, the thread stack cycles through the following:

0, ntdll.dll!RtlUnicodeToUTF8N+0x166
1, KernelBase.dll!WideCharToMultiByte+0x69c
2, wininet.dll!InternetCrackUrlW+0x177
3, notepad++.exe!SetLibraryProperty+0xab32c
n, ...

0, ntdll.dll!RtlUnicodeToUTF8N+0x180
1, KernelBase.dll!WideCharToMultiByte+0x69c
2, wininet.dll!InternetCrackUrlW+0x177
3, notepad++.exe!SetLibraryProperty+0xab32c
n, ...

0, wininet.dll!InternetCrackUrlW+0xbe
1, notepad++.exe!SetLibraryProperty+0xab32c
n, ...

0, notepad++.exe!SetLibraryProperty+0xab044
1, notepad++.exe!SetLibraryProperty+0xab2e1
n, ...

0, notepad++.exe!SetLibraryProperty+0xab13e
1, notepad++.exe!SetLibraryProperty+0xab2e1
n, ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions