diff options
author | Alan Modra <amodra@gmail.com> | 2021-02-11 16:56:42 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2021-02-11 19:30:47 +1030 |
commit | 1cfcf3004e1830f8fe9112cfcd15285508d2c2b7 (patch) | |
tree | cf35ec5d24a21747c7e5dab5d9e472f5aed0bde6 /gdb/elfread.c | |
parent | 6db658c517bdfbf8e5b8c5a34caf3ff1eea332f1 (diff) | |
download | gdb-1cfcf3004e1830f8fe9112cfcd15285508d2c2b7.zip gdb-1cfcf3004e1830f8fe9112cfcd15285508d2c2b7.tar.gz gdb-1cfcf3004e1830f8fe9112cfcd15285508d2c2b7.tar.bz2 |
PR27290, PR27293, PR27295, various avr objdump fixes
Adds missing sanity checks for avr device info note, to avoid
potential buffer overflows. Uses bfd_malloc_and_get_section for
sanity checking section size.
PR 27290
PR 27293
PR 27295
* od-elf32_avr.c (elf32_avr_get_note_section_contents): Formatting.
Use bfd_malloc_and_get_section.
(elf32_avr_get_note_desc): Formatting. Return descsz. Sanity
check namesz. Return NULL if descsz is too small. Ensure
string table is terminated.
(elf32_avr_get_device_info): Formatting. Add note_size param.
Sanity check note.
(elf32_avr_dump_mem_usage): Adjust to suit.
Diffstat (limited to 'gdb/elfread.c')
0 files changed, 0 insertions, 0 deletions