mirror of
git://sourceware.org/git/glibc.git
synced 2024-11-21 01:12:26 +08:00
(dl_open_worker): Avoid dereferencing map in statically linked code if there might none be found.
This commit is contained in:
parent
36106aabeb
commit
71fa9dfb12
@ -207,7 +207,15 @@ dl_open_worker (void *a)
|
||||
|
||||
found_caller:
|
||||
if (args->nsid == __LM_ID_CALLER)
|
||||
args->nsid = call_map->l_ns;
|
||||
{
|
||||
#ifndef SHARED
|
||||
/* In statically linked apps there might be no loaded object. */
|
||||
if (call_map == NULL)
|
||||
args->nsid = LM_ID_BASE;
|
||||
else
|
||||
#endif
|
||||
args->nsid = call_map->l_ns;
|
||||
}
|
||||
}
|
||||
|
||||
/* Maybe we have to expand a DST. */
|
||||
|
Loading…
Reference in New Issue
Block a user