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

 
 

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

Submitted by:  Benno Schulenberg <bens>
Submitted on:  Tue 09 Feb 2016 08:01:06 PM UTC  
 
Severity: 4 - ImportantStatus: 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.

 

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>
Project AdministratorIn charge of this item.
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>
Project AdministratorIn charge of this item.
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>
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 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 13 Feb 2016 10:36:50 AM UTCbensOpen/ClosedOpen=>Closed
    Wed 10 Feb 2016 08:51:07 AM UTCbensStatusNone=>Fixed
    Tue 09 Feb 2016 08:40:25 PM UTCbensSeverity3 - 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.1-cleanup1