aboutsummaryrefslogtreecommitdiff
path: root/binutils/readelf.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2017-04-28 10:28:04 +0100
committerNick Clifton <nickc@redhat.com>2017-04-28 10:28:04 +0100
commitd949ff5607b9f595e0eed2ff15fbe5eb84eb3a34 (patch)
treee95dccc20b4a2626f84ab0fe88cb71030c323a6a /binutils/readelf.c
parent339053c29abac25e5f86a1ccccd4e8e3b2d362df (diff)
downloadgdb-d949ff5607b9f595e0eed2ff15fbe5eb84eb3a34.zip
gdb-d949ff5607b9f595e0eed2ff15fbe5eb84eb3a34.tar.gz
gdb-d949ff5607b9f595e0eed2ff15fbe5eb84eb3a34.tar.bz2
Fix heap-buffer overflow bugs caused when dumping debug information from a corrupt binary.
PR binutils/21438 * dwarf.c (process_extended_line_op): Do not assume that the string extracted from the section is NUL terminated. (fetch_indirect_string): If the string retrieved from the section is not NUL terminated, return an error message. (fetch_indirect_line_string): Likewise. (fetch_indexed_string): Likewise.
Diffstat (limited to 'binutils/readelf.c')
0 files changed, 0 insertions, 0 deletions