bugGNU nano - Bugs: bug #47104, segfault after Delete, ^J, Delete

 
 

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

bug #47104: segfault after Delete, ^J, Delete

Submitter:  Benno Schulenberg <bens>
Submitted:  Tue 09 Feb 2016 08:01:06 PM UTC
   
 
Severity:  4 - Important Status:  Fixed
Assigned to:  bens Open/Closed:  Closed

Wed 10 Feb 2016 08:51:07 AM UTC, comment #2: 

Fixed in SVN, r5623.

(Bug is only present in 2.5.0 and 2.5.1.)

Benno Schulenberg <bens>
Group administrator
Tue 09 Feb 2016 08:40:25 PM UTC, comment #1: 

To reproduce, run 'src/nano +23 README'.

Then type:  <Delete>  ^J  <Up>  <Delete>.

Result: segmentation fault.

==5340== Invalid read of size 4
==5340==    at 0x805EDE6: update_undo (text.c:1060)
==5340==    by 0x80600E8: do_deletion (text.c:99)
==5340==    by 0x80602B6: do_delete (text.c:169)
==5340==    by 0x8057BDC: do_input (nano.c:1727)
==5340==    by 0x8058724: main (nano.c:2683)
==5340==  Address 0x0 is not stack'd, malloc'd or (recently) free'd

Benno Schulenberg <bens>
Group administrator
Tue 09 Feb 2016 08:01:06 PM UTC, original submission:  

Just had a segfault when pressing Delete at the start of a line after a ^J.  Can't reproduce, wasn't paying attention, lost some work too.  This is with SVN, r5620.

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 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-02-13 bens Open/ClosedOpen Closed
    2016-02-10 bens StatusNone Fixed
    2016-02-09 bens Severity3 - Normal 4 - Important
        Summarysegfault after some combination of ^J, M-J, M-U, Delete segfault after Delete, ^J, Delete

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code