summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
author이형주/Common Platform Lab(SR)/Staff Engineer/삼성전자 <leee.lee@samsung.com>2020-06-29 21:43:30 (GMT)
committerGitHub Enterprise <noreply-CODE@samsung.com>2020-06-29 21:43:30 (GMT)
commitc4a72f57bee753daf09ffbc2a2dfe65ed1582919 (patch)
treeb2105db8560f10b564d6d0548ea5fa588110753b /src
parent4561cc8ec108b1bfb7d6cebc891ee8c1f96e0a35 (diff)
downloadcoreclr-c4a72f57bee753daf09ffbc2a2dfe65ed1582919.zip
coreclr-c4a72f57bee753daf09ffbc2a2dfe65ed1582919.tar.gz
coreclr-c4a72f57bee753daf09ffbc2a2dfe65ed1582919.tar.bz2
[Tizen] Fix crash on accessing 0x0 while unwinding (#287)
Change-Id: I663d0fcdcd6fd8fb4c521d9bdbb4d234c96022ae
Diffstat (limited to 'src')
-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 fb9a5e3..4720370 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