GNU nano - Bugs: bug #60436, use-after-free detected when undo...
You are not allowed to post comments on this tracker with your current authentication level.
bug #60436: use-after-free detected when undo goes offscreen
Submitter: | Benno Schulenberg <bens> | ||
Submitted: | Thu 22 Apr 2021 10:34:08 AM UTC | ||
Severity: | 3 - Normal | Status: | Fixed |
Assigned to: | bens | Open/Closed: | Closed |
Tue 05 Jul 2022 11:56:16 AM UTC, comment #3: |
Benno Schulenberg <bens> |
Fri 23 Apr 2021 08:51:27 AM UTC, comment #2: Fixed in git, commit 588022ab, by stepping 'edittop' one line back in delete_node() when needed.
|
Benno Schulenberg <bens> |
Thu 22 Apr 2021 05:57:47 PM UTC, comment #1: Bug exists since version 2.3.3 from seven years ago. :|
|
Benno Schulenberg <bens> |
Thu 22 Apr 2021 10:34:08 AM UTC, original submission:
To reproduce, configure nano with CFLAGS="-g -O0 -fsanitize=address", compile, and then run:
Then hold down <Enter> until the first few lines have scrolled offscreen. Then hold down M-U until the cursor reaches the top row. Then type one more M-U. Result: nano is aborted:
|
Benno Schulenberg <bens> |
No files currently attached
Depends on the following items: None found
Items that depend on this one: None found
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
Follow 4 latest changes.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2021-04-30 | bens | Open/Closed | Open | Closed | |
2021-04-23 | bens | Severity | 4 - Important | 3 - Normal | |
Status | In Progress | Fixed | |||
2021-04-22 | bens | Status | None | In Progress |
Powered by Savane 3.13-bb6a.
Corresponding source code
The check is needed also for a fourth case: when doing a Backspace while at the beginning of the first row of the screen (and this first row is not the first line of the file).