bugGNU nano - Bugs: bug #57724, if there were an error while...

 
 

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

bug #57724: if there were an error while writing a lock file, nano would crash

Submitted by:  Benno Schulenberg <bens>
Submitted on:  Sun 02 Feb 2020 09:42:56 AM UTC  
 
Severity:  4 - Important Status:  Fixed
Assigned to:  Benno Schulenberg <bens> Open/Closed:  Closed

Sun 02 Feb 2020 10:10:52 AM UTC, comment #1: 

Fixed in git, commit 74f4c37d.

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
Sun 02 Feb 2020 09:42:56 AM UTC, original submission:  

In src/files.c, in write_lockfile(), if the fwrite() does not succeed in writing all 1024 bytes, and if then ferror() returns anything other than zero, nano would most likely crash, because the returned number would not be a pointer into nano's memory.

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.

 

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)
  •  

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

    Only logged-in users can vote.

     

     

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-02-09 bens Open/ClosedOpen => Closed
    2020-02-02 bens Summaryif there were an error while writing a lockfile, nano would crash => if there were an error while writing a lock file, nano would crash
    2020-02-02 bens StatusIn Progress => Fixed

    Back to the top


    Powered by Savane 3.7