bugGNU nano - Bugs: bug #65365, uninitialized value used in...

 
 

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

bug #65365: uninitialized value used in get_verbatim_kbinput()

Submitter:  correctmost <correctmost>
Submitted:  Sun 25 Feb 2024 07:03:09 PM UTC
   
 
Severity:  2 - Minor Status:  Fixed
Assigned to:  bens Open/Closed:  Open

Mon 26 Feb 2024 09:54:13 AM UTC, comment #1: 

Fixed in git, commit db727744, by checking that 'count' is nonzero before referencing any input byte.

Thanks for reporting!

Benno Schulenberg <bens>
Group administrator
Sun 25 Feb 2024 07:03:09 PM UTC, original submission:  

Steps to reproduce:
1 - Run `valgrind nano --ignore`
2 - Alt + v
3 - Type a%


Valgrind output:

Conditional jump or move depends on uninitialised value(s)
   at 0x13C6C6: get_verbatim_kbinput (winio.c:1543)
   by 0x13864D: do_verbatim_input (text.c:3025)
   by 0x126163: process_a_keystroke (nano.c:1685)
   by 0x127FC4: main (nano.c:2651)

Conditional jump or move depends on uninitialised value(s)
   at 0x13C6F8: get_verbatim_kbinput (winio.c:1546)
   by 0x13864D: do_verbatim_input (text.c:3025)
   by 0x126163: process_a_keystroke (nano.c:1685)
   by 0x127FC4: main (nano.c:2651)

Conditional jump or move depends on uninitialised value(s)
   at 0x13C70D: get_verbatim_kbinput (winio.c:1546)
   by 0x13864D: do_verbatim_input (text.c:3025)
   by 0x126163: process_a_keystroke (nano.c:1685)
   by 0x127FC4: main (nano.c:2651)


Version: 4673e709b2b04e32db3a9c6cc561db04b0a517b1

correctmost <correctmost>

 

(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 (Posted a comment)
  • -email is unavailable- added by correctmost (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 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2024-02-26 bens Severity3 - Normal 2 - Minor
        StatusNone Fixed
        Assigned toNone bens

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code