mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-03-01 13:26:47 +08:00
2013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
* solib-svr4.c (svr4_free_so): Protect against NULL dereference.
This commit is contained in:
parent
93acabad6a
commit
6dcc1893b6
@ -1,3 +1,7 @@
|
||||
2013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
|
||||
|
||||
* solib-svr4.c (svr4_free_so): Protect against NULL dereference.
|
||||
|
||||
2013-05-21 Pedro Alves <palves@redhat.com>
|
||||
|
||||
* python/py-prettyprint.c (apply_val_pretty_printer): Check
|
||||
|
@ -971,7 +971,8 @@ svr4_free_so (struct so_list *so)
|
||||
static void
|
||||
svr4_clear_so (struct so_list *so)
|
||||
{
|
||||
so->lm_info->l_addr_p = 0;
|
||||
if (so->lm_info != NULL)
|
||||
so->lm_info->l_addr_p = 0;
|
||||
}
|
||||
|
||||
/* Free so_list built so far (called via cleanup). */
|
||||
|
Loading…
Reference in New Issue
Block a user