elf: ignore address context that is not user

We should be betting a context change as part of the stack, so ignore it
if we didn't get a user context.
This commit is contained in:
Christian Hergert
2018-01-29 01:29:31 -08:00
parent deecb04963
commit 2f6b01781f

View File

@ -266,7 +266,7 @@ sp_elf_symbol_resolver_resolve_with_context (SpSymbolResolver *resolver,
g_assert (SP_IS_ELF_SYMBOL_RESOLVER (self));
if (context != SP_ADDRESS_CONTEXT_USER && context != SP_ADDRESS_CONTEXT_NONE)
if (context != SP_ADDRESS_CONTEXT_USER)
return NULL;
lookaside = g_hash_table_lookup (self->lookasides, GINT_TO_POINTER (pid));