Skip to content

[BUG] Integer overflow in Column Editor #15167

@cddiffz

Description

@cddiffz

Is there an existing issue for this?

  • I have searched the existing issues

Description of the Issue

When you insert a sequence of numbers with the Column Editor, you expect the sequence to be monotonically increasing, but this is not the case if the number becomes too large at some point.

Steps To Reproduce

  1. Create a new file with 216 empty lines
  2. Place the cursor in the first line
  3. Open Column Editor, select "Number to Insert", set "Increase by" to 9999999, "Repeat" to 1, and "Format" to "Dec"
  4. Press "OK"

Current Behavior

A negative number is displayed on the last line.

Expected Behavior

A consistent positive number is displayed on the last line.

Debug Information

Notepad++ v8.6.7   (64-bit)
Build time : May 12 2024 - 20:04:00
Path : C:\Program Files\Notepad++\notepad++.exe
Command Line :
Admin mode : OFF
Local Conf mode : OFF
Cloud Config : OFF
Periodic Backup : ON
OS Name : Windows 10 Pro (64-bit)
OS Version : 1809
OS Build : 17763.1579
Current ANSI codepage : 1252
Plugins :
    mimeTools (3.1)
    NppConverter (4.6)
    NppExport (0.4)

Anything else?

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions