2013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>

* solib-svr4.c (svr4_free_so): Protect against NULL dereference.
This commit is contained in:
Paul Pluzhnikov 2013-05-21 23:41:29 +00:00
parent 93acabad6a
commit 6dcc1893b6
2 changed files with 6 additions and 1 deletions

View File

@ -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

View File

@ -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). */