Skip to content

[BUG] Crash bug if send invalid buffer id to NPPM_SETUNTITLEDNAME plugin command  #15970

@alankilborn

Description

@alankilborn

Is there an existing issue for this?

  • I have searched the existing issues

Description of the Issue

See #15291 (comment)

Steps To Reproduce

  1. Send -1 to NPPM_SETUNTITLEDNAME plugin command for the buffer id to rename

Current Behavior

Crash.

Expected Behavior

No crash. Currently active buffer gets renamed if it is an "untitled" buffer.

Debug Information

Notepad++ v8.7.4   (64-bit)
Build time : Dec  4 2024 - 23:50:05
Path : C:\NotepadPlusPlus\Misc\_NoBackup\Releases\npp.8.7.4\npp.8.7.4.portable.x64\notepad++.exe
Command Line : -titleAdd="8.7.4 64-bit" -multiInst
Admin mode : OFF
Local Conf mode : ON
Cloud Config : OFF
Periodic Backup : ON
Placeholders : OFF
DirectWrite : OFF
Multi-instance Mode : monoInst
File Status Auto-Detection : cdEnabledNew (for current file/tab only)
Dark Mode : OFF
OS Name : Windows 11 Pro (64-bit)
OS Version : 23H2
OS Build : 22631.4602
Current ANSI codepage : 1252
Plugins : 
    mimeTools (3.1)
    NppConverter (4.6)
    NppExport (0.4)
    PythonScript (3.0.18)

Anything else?

No response

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