bugGNU nano - Bugs: bug #51206, if opening standard input would...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #51206: if opening standard input would fail, nano will segfault

Submitter:  Benno Schulenberg <bens>
Submitted:  Thu 08 Jun 2017 08:48:25 AM UTC
   
 
Severity:  2 - Minor Status:  Fixed
Assigned to:  bens Open/Closed:  Closed

Thu 08 Jun 2017 02:36:40 PM UTC, comment #1: 

Hypothetical problem is fixed in git, 942bb395.

Benno Schulenberg <bens>
Group administrator
Thu 08 Jun 2017 08:48:25 AM UTC, original submission:  

When nano is used with a dash as command-line argument (to make it read file data from standard input), and opening standard input would fail, then currently nano happily continues and tries to read data from a NULL pointer... and thus crashes.

Expected behavior: in the case that opening stdin fails, at least an appropriate error message should be shown, and then nano should either exit or continue with an empty buffer.

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
    2017-06-26 bens Open/ClosedOpen Closed
    2017-06-08 bens Severity3 - Normal 2 - Minor
        StatusIn Progress Fixed

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code