This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH v4 1/9] fix latent bugs in ui-out.c
- From: Tom Tromey <tromey at redhat dot com>
- To: Pedro Alves <palves at redhat dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Mon, 28 Oct 2013 11:36:54 -0600
- Subject: Re: [PATCH v4 1/9] fix latent bugs in ui-out.c
- Authentication-results: sourceware.org; auth=none
- References: <1382464769-2465-1-git-send-email-tromey at redhat dot com> <1382464769-2465-2-git-send-email-tromey at redhat dot com> <526E80B1 dot 6060202 at redhat dot com>
>>>>> "Pedro" == Pedro Alves <palves@redhat.com> writes:
Pedro> On 10/22/2013 06:59 PM, Tom Tromey wrote:
>> The destructor code in ui-out.c has a latent bug, which is hidden by
>> the fact that nothing uses this right now. This patch fixes the
>> problem. The bug is that we don't always clear a pointer in the
>> ui-out object, leading to bad a free.
Pedro> "to a bad free"
Thanks, I've fixed this on my branch.
Tom