bugGNU nano - Bugs: bug #55792, the reloading of the...

 
 

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

bug #55792: the reloading of the position-history file can crash nano

Submitted by:  Brand Huntsman <brand>
Submitted on:  Wed 27 Feb 2019 09:50:44 AM UTC  
 
Severity:  4 - Important Status:  Fixed
Assigned to:  Benno Schulenberg <bens> Open/Closed:  Closed

Wed 27 Feb 2019 05:06:17 PM UTC, comment #2: 

Thanks for the patch.  Applied and pushed to master, commit a5ef013e.

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
Wed 27 Feb 2019 09:51:56 AM UTC, comment #1: 

The patch.

(file #46364)

Brand Huntsman <brand>
Wed 27 Feb 2019 09:50:44 AM UTC, original submission:  

http://lists.gnu.org/archive/html/nano-devel/2019-02/msg00025.html

In has_old_position(), posptr is set before the call to reload_positions_if_needed() which can free and recreate the list in position_history. The attached patch fixes the crash.

Brand Huntsman <brand>

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by bens (Posted a comment)
  • -email is unavailable- added by brand (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 9 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-03-25 bens Open/ClosedOpen => Closed
    2019-02-28 bens Summary[Crash] the reloading of position-history file can crash nano => the reloading of the position-history file can crash nano
    2019-02-27 bens Severity3 - Normal => 4 - Important
        StatusNone => Fixed
        Assigned toNone => bens
        Summary[Crash] reloading position history can crash nano => [Crash] the reloading of position-history file can crash nano
    2019-02-27 brand Attached File- => Added 0001-Grab-position_history-after-calling-reload_positions.patch, #46364
    2019-02-27 brand Attached File- => Added 0001-Grab-position_history-after-calling-reload_positions.patch, #46363
    2019-02-27 brand Attached File- => Added 0001-Grab-position_history-after-calling-reload_positions.patch, #46362

    Back to the top


    Powered by Savane 3.5