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

 
 

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

bug #48538: Unicode input leaks memory

Submitter:  Benno Schulenberg <bens>
Submitted:  Sun 17 Jul 2016 09:15:16 AM UTC
   
 
Severity:  2 - Minor Status:  Fixed
Assigned to:  bens Open/Closed:  Closed

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

Fixed in git, 1d4c1e0.

Benno Schulenberg <bens>
Group administrator
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>
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 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-07-30 bens Open/ClosedOpen Closed
    2016-07-17 bens StatusNone Fixed

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code