aboutsummaryrefslogtreecommitdiff
path: root/gdb/python
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2023-04-03 07:51:28 +0930
committerAlan Modra <amodra@gmail.com>2023-04-03 07:51:28 +0930
commit7a6efab20b469e620198d8d6a27e56d5714a0ef4 (patch)
tree51d4995404247632b417399babcfcb8e5324c042 /gdb/python
parentf679aaa4c8fd6f72a8e2d60aba2c88127133101a (diff)
downloadbinutils-7a6efab20b469e620198d8d6a27e56d5714a0ef4.zip
binutils-7a6efab20b469e620198d8d6a27e56d5714a0ef4.tar.gz
binutils-7a6efab20b469e620198d8d6a27e56d5714a0ef4.tar.bz2
asan: heap buffer overflow printing ecoff debug info file name
A case of a string section ending with an unterminated string. Fix it by allocating one more byte and making it zero. Also make functions reading the data return void* so that casts are not needed. * ecoff.c (READ): Delete type param. Allocate one extra byte to terminate string sections with a NUL. Adjust invocation. * elfxx-mips.c (READ): Likewise. * libbfd-in.h (_bfd_alloc_and_read): Return a void*. (_bfd_malloc_and_read): Likewise. * libbfd.h: Regenerate.
Diffstat (limited to 'gdb/python')
0 files changed, 0 insertions, 0 deletions