bugGNU nano - Bugs: bug #47219, nano aborts when searching again...

 
 

bug #47219: nano aborts when searching again for multibyte characters

Submitted by:  Benno Schulenberg <bens>
Submitted on:  Mon 22 Feb 2016 12:29:47 PM UTC  
 
Severity: 5 - BlockerStatus: 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.

 

Mon 22 Feb 2016 02:01:42 PM UTC, comment #1:

Fixed in SVN, r5662.

An easier reproduction recipe would have been typing just:
^W ŜŜ.

(This bug was revealed by the unpapering in r5655.)

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
Mon 22 Feb 2016 12:29:47 PM UTC, original submission:

To reproduce (in current SVN, r5660), run 'MALLOC_CHECK_=2 src/nano', and then type:
^W ŝ ^C ^W.

Aborted.

(Instead of ŝ one can type or paste any other multibyte Unicode character.)

When adding debugging statements, it results that it aborts in mallocstrncpy() in src/utils.c when it tries to free the destination string, which is 'answer'... Absolutely nuts.

Finally, /finally/ I realize that the charmove() in do_statusbar_output() in src/prompt.c is moving too many bytes.

Owww... That nano works at all! When it has such basic bugs!

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

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 27 Feb 2016 03:09:30 PM UTCbensOpen/ClosedOpen=>Closed
    Mon 22 Feb 2016 02:01:42 PM UTCbensStatusNone=>Fixed

    Back to the top


    Powered by Savane 3.1-cleanup1