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

 
 

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

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

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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

Hypothetical problem is fixed in git, 942bb395.

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
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>
Project AdministratorIn charge of this item.

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 26 Jun 2017 08:32:35 AM UTCbensOpen/ClosedOpen=>Closed
    Thu 08 Jun 2017 02:36:40 PM UTCbensSeverity3 - Normal=>2 - Minor
      StatusIn Progress=>Fixed

    Back to the top


    Powered by Savane 3.1-cleanup1