From 326a5c7e368d49251ad48b2091388d8f424bfc54 Mon Sep 17 00:00:00 2001 From: Gary Benson Date: Tue, 14 Apr 2015 12:35:30 +0100 Subject: Zero supplied stat buffers in functions that pretend to stat GDB has five places where it pretends to stat for bfd_openr_iovec. Four of these only set the incoming buffer's st_size, leaving the other fields unchanged, which is to say very likely populated with random values from the stack. remote_bfd_iovec_stat was fixed in 0a93529c56714b1da3d7106d3e0300764f8bb81c; this commit fixes the other four. gdb/ChangeLog: * jit.c (mem_bfd_iovec_stat): Zero supplied buffer. * minidebug.c (lzma_stat): Likewise. * solib-spu.c (spu_bfd_iovec_stat): Likewise. * spu-linux-nat.c (spu_bfd_iovec_stat): Likewise. --- gdb/ChangeLog | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'gdb/ChangeLog') diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 9a027f3..acb408b 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,10 @@ +2015-04-14 Gary Benson + + * jit.c (mem_bfd_iovec_stat): Zero supplied buffer. + * minidebug.c (lzma_stat): Likewise. + * solib-spu.c (spu_bfd_iovec_stat): Likewise. + * spu-linux-nat.c (spu_bfd_iovec_stat): Likewise. + 2015-04-13 Stan Shebs * MAINTAINERS: Update my email address. -- cgit v1.1