This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Zero supplied stat buffers in functions that pretend to stat
- From: Pedro Alves <palves at redhat dot com>
- To: Gary Benson <gbenson at redhat dot com>, gdb-patches at sourceware dot org
- Date: Mon, 13 Apr 2015 22:53:56 +0100
- Subject: Re: [PATCH] Zero supplied stat buffers in functions that pretend to stat
- Authentication-results: sourceware.org; auth=none
- References: <1428961250-23031-1-git-send-email-gbenson at redhat dot com>
On 04/13/2015 10:40 PM, Gary Benson wrote:
> Hi all,
>
> 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.
>
> Built and and regtested on RHEL6.6 x86_64.
>
> Ok to commit?
Eh, how apropos for the bfd cache discussion.
OK, thanks.
--
Pedro Alves