This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Fix access to uninitialized variable in fill_in_stop_func
- From: Tom Tromey <tom at tromey dot com>
- To: Pedro Franco de Carvalho <pedromfc at linux dot ibm dot com>
- Cc: gdb-patches at sourceware dot org, tom at tromey dot com, kevinb at redhat dot com
- Date: Fri, 09 Aug 2019 14:42:28 -0600
- Subject: Re: [PATCH] Fix access to uninitialized variable in fill_in_stop_func
- References: <20190808104200.6a387ac8@f29-4.lan> <20190809191313.25200-1-pedromfc@linux.ibm.com>
>>>>> "Pedro" == Pedro Franco de Carvalho <pedromfc@linux.ibm.com> writes:
Pedro> This patch changes find_pc_partial_function so that *block is set to
Pedro> nullptr when it fails, so that fill_in_stop_func won't access an
Pedro> uninitialized variable.
Pedro> gdb/ChangeLog:
Pedro> YYYY-MM-DD Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
Pedro> * blockframe.c (find_pc_partial_function): Set *block to nullptr
Pedro> when the function fails.
Thanks. This is ok.
Tom