summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/pal/src/libunwind/src/x86/Gos-linux.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/pal/src/libunwind/src/x86/Gos-linux.c b/src/pal/src/libunwind/src/x86/Gos-linux.c
index fb9a5e3461..4720370057 100644
--- a/src/pal/src/libunwind/src/x86/Gos-linux.c
+++ b/src/pal/src/libunwind/src/x86/Gos-linux.c
@@ -59,7 +59,9 @@ unw_is_signal_frame (unw_cursor_t *cursor)
if SA_SIGINFO is specified.
*/
ip = c->dwarf.ip;
- if ((*a->access_mem) (as, ip, &w0, 0, arg) < 0
+
+ if (!ip
+ || (*a->access_mem) (as, ip, &w0, 0, arg) < 0
|| (*a->access_mem) (as, ip + 4, &w1, 0, arg) < 0)
ret = 0;
else