bugGNU 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: 

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.

Benno Schulenberg <bens>
Group administrator
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.

So it seems that the changed sigwinch handling is at the root of this.

Benno Schulenberg <bens>
Group administrator
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.

Bug exists since nano-2.4.2.

After an Alt+V an Alt+F10 enters an invalid byte into the buffer (in a UTF8 locale, if it doesn't segfault).  Also an F11 (without Alt) after an Alt+V enters an invalid byte.

Benno Schulenberg <bens>
Group administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by bens (Submitted the item)
  •  

    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/ClosedOpen Closed
    2016-07-17 bens StatusNone Fixed
    2016-07-16 bens Summarysegmentation fault during verbatim input of Alt+F10 segmentation fault when resizing during verbatim input

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code