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

Submitter:  Brand Huntsman <brand>
Submitted:  Wed 27 Feb 2019 09:50:44 AM UTC
   
 
Severity:  4 - Important Status:  Fixed
Assigned to:  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>
Group administrator
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>

 

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

 

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

    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 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.13-f8d8.
    Corresponding source code