bugGNU nano - Bugs: bug #53089, nano leaks memory when using...

 
 

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

bug #53089: nano leaks memory when using verbatim input at a prompt

Submitter:  Benno Schulenberg <bens>
Submitted:  Wed 07 Feb 2018 04:35:26 PM UTC
   
 
Severity:  2 - Minor Status:  Fixed
Assigned to:  bens Open/Closed:  Closed

Thu 08 Feb 2018 04:58:05 PM UTC, comment #1: 

Fixed in git, commit 1635060b.

Benno Schulenberg <bens>
Group administrator
Wed 07 Feb 2018 04:35:26 PM UTC, original submission:  

To reproduce, run:

   valgrind --leak-check=full nano 2>TRAIL

and type: ^W M-V ^B ^C ^X
Then look at TRAIL and see:
  
==30349== 4 bytes in 1 blocks are definitely lost in loss record 15 of 507
==30349==    at 0x4C2FB0F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==30349==    by 0x12B76F: nmalloc (utils.c:354)
==30349==    by 0x12C142: get_input (winio.c:308)
==30349==    by 0x12E279: parse_verbatim_kbinput (winio.c:1570)
==30349==    by 0x12E2C1: get_verbatim_kbinput (winio.c:1476)
==30349==    by 0x1204F5: do_statusbar_verbatim_input (prompt.c:354)
==30349==    by 0x120A8C: do_statusbar_input (prompt.c:163)
==30349==    by 0x120E55: acquire_an_answer (prompt.c:471)
==30349==    by 0x121057: do_prompt (prompt.c:630)
==30349==    by 0x1248B6: search_init (search.c:132)
==30349==    by 0x124D7E: do_search (search.c:356)
==30349==    by 0x124DC3: do_search_forward (search.c:373)

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
    2018-03-09 bens Open/ClosedOpen Closed
    2018-02-08 bens StatusNone Fixed

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code