- add additional NULL check. I know you can get this if you forget to
call lt_dlinit(), but I'm pretty certain that I've seen it in other cases as well.
This commit is contained in:
parent
fb6fe521a2
commit
87d714f9ca
@ -3327,6 +3327,12 @@ lt_dlsym (handle, symbol)
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (!handle->loader)
|
||||
{
|
||||
LT_DLMUTEX_SETERROR (LT_DLSTRERROR (INVALID_LOADER));
|
||||
return 0;
|
||||
}
|
||||
|
||||
lensym = LT_STRLEN (symbol) + LT_STRLEN (handle->loader->sym_prefix)
|
||||
+ LT_STRLEN (handle->info.name);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user