[PATCH] Fix access to uninitialized variable in fill_in_stop_func

Kevin Buettner kevinb@redhat.com
Fri Aug 9 19:17:00 GMT 2019

On Fri,  9 Aug 2019 16:13:13 -0300
Pedro Franco de Carvalho <pedromfc@linux.ibm.com> wrote:

> This patch changes find_pc_partial_function so that *block is set to
> nullptr when it fails, so that fill_in_stop_func won't access an
> uninitialized variable.
> gdb/ChangeLog:
> YYYY-MM-DD  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
> 	* blockframe.c (find_pc_partial_function): Set *block to nullptr
>           when the function fails.



More information about the Gdb-patches mailing list