diff options
author | Nick Clifton <nickc@redhat.com> | 2017-02-13 14:52:48 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2017-02-13 14:52:48 +0000 |
commit | ebdf1ebfa551fd4624c3cd05401aa3c01ea2ebbe (patch) | |
tree | 87e2c413c7e1b3bfec0146c82309662ca8a16a66 /gdb/ui-file.c | |
parent | 4aeb00ad3cc6a29b32f0a4e42c2f64d55e25b76d (diff) | |
download | gdb-ebdf1ebfa551fd4624c3cd05401aa3c01ea2ebbe.zip gdb-ebdf1ebfa551fd4624c3cd05401aa3c01ea2ebbe.tar.gz gdb-ebdf1ebfa551fd4624c3cd05401aa3c01ea2ebbe.tar.bz2 |
Fix invalid memory access attempting to read the compression header of a too-small compressed section.
PR binutils/21149
* readelf.c (get_compression_header): Add size parameter. Check
size against sizeof compression header before attempting to
extract the header.
(process_section_headers): Pass size to get_compression_header.
(dump_section_as_strings): Likewise.
(dump_section_as_bytes): Likewise.
(load_specific_debug_section): Likewise.
Diffstat (limited to 'gdb/ui-file.c')
0 files changed, 0 insertions, 0 deletions