This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH][gdb] Fix heap-buffer-overflow in child_path
- From: Tom Tromey <tom at tromey dot com>
- To: Tom de Vries <tdevries at suse dot de>
- Cc: gdb-patches at sourceware dot org, Simon Marchi <simon dot marchi at polymtl dot ca>, Pedro Alves <palves at redhat dot com>
- Date: Mon, 17 Jun 2019 11:37:15 -0600
- Subject: Re: [PATCH][gdb] Fix heap-buffer-overflow in child_path
- References: <20190617095305.GA13819@delia>
>>>>> "Tom" == Tom de Vries <tdevries@suse.de> writes:
Tom> 2019-06-17 Tom de Vries <tdevries@suse.de>
Tom> PR gdb/24617
Tom> * common/pathstuff.c (child_path): Make sure parent_len > 0 before
Tom> accessing parent[parent_len - 1].
Thanks, this is ok.
Tom