[PATCH 1/5] elf: Fix audit regression

Andreas Schwab schwab@linux-m68k.org
Wed Jul 7 19:51:25 GMT 2021


On Jul 07 2021, Adhemerval Zanella via Libc-alpha wrote:

> @@ -771,7 +771,7 @@ dl_open_worker (void *a)
>      {
>        struct link_map *libc_map = GL(dl_ns)[args->nsid].libc_map;
>  #ifdef SHARED
> -      bool initial = libc_map->l_ns == LM_ID_BASE;
> +      bool initial = libc_map != NULL ? libc_map->l_ns == LM_ID_BASE : false;

         bool initial = libc_map != NULL && libc_map->l_ns == LM_ID_BASE;

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."


More information about the Libc-alpha mailing list