GNU nano - Bugs: bug #60596, memory leak for automatic...
You are not allowed to post comments on this tracker with your current authentication level.
bug #60596: memory leak for automatic hardwrapping of quoted text
Submitter: | Benno Schulenberg <bens> | ||
Submitted: | Thu 13 May 2021 07:44:31 AM UTC | ||
Severity: | 2 - Minor | Status: | Fixed |
Assigned to: | bens | Open/Closed: | Closed |
Fri 14 May 2021 08:04:12 AM UTC, comment #2: |
Benno Schulenberg <bens> |
Thu 13 May 2021 03:03:11 PM UTC, comment #1: The leakage is caused when do_wrap() calls update_undo(ENTER) -- the earlier do_enter() has already made this call, meaning that this new call will leak the existing u->strdata. |
Benno Schulenberg <bens> |
Thu 13 May 2021 07:44:31 AM UTC, original submission:
To reproduce, compile nano with -fsanitize=address, and run:
Then type: <Tab>
|
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 3 latest changes.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2021-06-16 | bens | Open/Closed | Open | Closed | |
2021-05-15 | bens | Summary | memory leak when automatic hardwrapping of quoted text occurs | memory leak for automatic hardwrapping of quoted text | |
2021-05-14 | bens | Status | None | Fixed |
Powered by Savane 3.13-4b48.
Corresponding source code
Fixed in git, commit f23e98dd, by freeing the existing 'strdata' before calling update_undo(ENTER) the second time.