[LibOS] Assert that context != NULL in shim_signal.c: illegal_upcall()

This commit is contained in:
Alex Merritt
2019-07-26 13:35:11 -07:00
committed by Dmitrii Kuvaiskii
parent e7ab81758f
commit fdc206d339
+3 -2
View File
@@ -472,8 +472,9 @@ static void illegal_upcall (PAL_PTR event, PAL_NUM arg, PAL_CONTEXT * context)
!context_is_internal(context) &&
!(lookup_vma((void *) arg, &vma)) &&
!(vma.flags & VMA_INTERNAL)) {
if (context)
debug("illegal instruction at 0x%08lx\n", context->IP);
assert(context);
debug("illegal instruction at 0x%08lx\n", context->IP);
uint8_t * rip = (uint8_t*)context->IP;
/*