GNU nano - Bugs: bug #48532, segmentation fault when resizing...
You are not allowed to post comments on this tracker with your current authentication level.
bug #48532: segmentation fault when resizing during verbatim input
Submitter: | Benno Schulenberg <bens> | ||
Submitted: | Sat 16 Jul 2016 03:58:21 PM UTC | ||
Severity: | 4 - Important | Status: | Fixed |
Assigned to: | bens | Open/Closed: | Closed |
Sun 17 Jul 2016 10:28:39 AM UTC, comment #2: |
Benno Schulenberg <bens> |
Sat 16 Jul 2016 04:11:38 PM UTC, comment #1: (Alt+F10 toggles window maximalisation here -- so it resizes the window.) So anther recipe is: type Alt+V, then resize the terminal window. Do this up to four times. Segmentation fault.
|
Benno Schulenberg <bens> |
Sat 16 Jul 2016 03:58:21 PM UTC, original submission:
To reproduce, run 'src/nano', hold down the Alt key and type alternatingly V and F10. Upon the first or the fourth F10: segmentation fault.
|
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 |
---|---|---|---|---|---|
2016-07-30 | bens | Open/Closed | Open | Closed | |
2016-07-17 | bens | Status | None | Fixed | |
2016-07-16 | bens | Summary | segmentation fault during verbatim input of Alt+F10 | segmentation fault when resizing during verbatim input |
Powered by Savane 3.13-758e.
Corresponding source code
Fixed in git, 103dd06.
It puzzles me, however, why resizing during Unicode input -- which we don't treat specially -- doesn't put random characters into the input buffer... Maybe because KEY_WINCH (-2) happens to be an invalid Unicode codepoint and thus make_mbchar() returns a sequence of length zero? ... Yeah, that must be it. We got lucky there.