GNU nano - Bugs: bug #61334, memory leak with --minibar when...
You are not allowed to post comments on this tracker with your current authentication level.
bug #61334: memory leak with --minibar when filename gets dottified
Submitter: | Benno Schulenberg <bens> | ||
Submitted: | Tue 12 Oct 2021 10:22:28 AM UTC | ||
Severity: | 2 - Minor | Status: | Fixed |
Assigned to: | bens | Open/Closed: | Closed |
Tue 12 Oct 2021 10:51:06 AM UTC, comment #2: |
Benno Schulenberg <bens> |
Tue 12 Oct 2021 10:43:39 AM UTC, comment #1: The problem is this: 'thename = display_string(thename, ...'. The filename string gets overwritten with another one without freeing it first. |
Benno Schulenberg <bens> |
Tue 12 Oct 2021 10:22:28 AM UTC, original submission:
To reproduce, compile nano with -fsanitizer=address in the CFLAGS, then run:
Then make the terminal narrower until the filename becomes dottified ("...-is-a-filename "), then make the terminal its normal with again (to be able to read the output of the LeakSanitizer), and type ^X. Result:
|
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-12-16 | bens | Open/Closed | Open | Closed | |
2021-10-12 | bens | Status | None | Fixed | |
2021-10-12 | bens | Summary | memory leak with --minibar when filename becomes dottified | memory leak with --minibar when filename gets dottified |
Powered by Savane 3.13-d3ae.
Corresponding source code
Fixed in git, commit 7e807cdd, by using an extra variable for the shortened filename and freeing it after use.