Skip to content

Buffer overflow read in keyboard.cpp #41

@drfiemost

Description

@drfiemost

Detected with ASan at exit after pressing ESC:

 ../src/keyboard.cpp:119:19: runtime error: load of address 0x7f6c0c1e9360 with insufficient space for an object of type 'char'
0x7f6c0c1e9360: note: pointer points here
 00 00 00 00  1b 1b 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  26 dd ff 0b
              ^ 
../src/keyboard.cpp:146:18: runtime error: load of address 0x7f6c0c1e9361 with insufficient space for an object of type 'char'
0x7f6c0c1e9361: note: pointer points here
 00 00 00  1b 1b 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  26 dd ff 0b 6c
              ^ 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions