bugGNU nano - Bugs: bug #48538, Unicode input leaks memory

 
 

bug #48538: Unicode input leaks memory

Submitted by:  Benno Schulenberg <bens>
Submitted on:  Sun 17 Jul 2016 09:15:16 AM UTC  
 
Severity: 2 - MinorStatus: 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.

 

Sun 17 Jul 2016 10:02:24 AM UTC, comment #1:

Fixed in git, 1d4c1e0.

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
Sun 17 Jul 2016 09:15:16 AM UTC, original submission:

Run 'src/nano' under valgrind and type: M-V 012012 ^X N, and see:

==2787== 4 bytes in 1 blocks are definitely lost in loss record 18 of 542
==2787== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==2787== by 0x80671F8: nmalloc (utils.c:387)
==2787== by 0x806AFBD: get_input (winio.c:294)
==2787== by 0x806B055: parse_verbatim_kbinput (winio.c:1395)
==2787== by 0x806B1D3: get_verbatim_kbinput (winio.c:1372)
==2787== by 0x8061598: do_verbatim_input (text.c:3659)
==2787== by 0x805B7A9: do_input (nano.c:1689)
==2787== by 0x805C4E8: main (nano.c:2659)
==2787==
==2787== 16 bytes in 4 blocks are definitely lost in loss record 62 of 542
==2787== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==2787== by 0x80671F8: nmalloc (utils.c:387)
==2787== by 0x806AFBD: get_input (winio.c:294)
==2787== by 0x806B0E8: parse_verbatim_kbinput (winio.c:1429)
==2787== by 0x806B1D3: get_verbatim_kbinput (winio.c:1372)
==2787== by 0x8061598: do_verbatim_input (text.c:3659)
==2787== by 0x805B7A9: do_input (nano.c:1689)
==2787== by 0x805C4E8: main (nano.c:2659)

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 30 Jul 2016 09:24:53 AM UTCbensOpen/ClosedOpen=>Closed
    Sun 17 Jul 2016 10:02:24 AM UTCbensStatusNone=>Fixed

    Back to the top


    Powered by Savane 3.1-cleanup1