Revert "[Tizen] Fix crash on accessing 0x0 while unwinding (#287)"
authorYaroslav Yamshchikov <y.yamshchiko@samsung.com>
Thu, 24 Sep 2020 11:40:17 +0000 (14:40 +0300)
committer이형주/Common Platform Lab(SR)/Staff Engineer/삼성전자 <leee.lee@samsung.com>
Mon, 5 Oct 2020 00:53:20 +0000 (09:53 +0900)
This reverts commit c4a72f57bee753daf09ffbc2a2dfe65ed1582919.

src/pal/src/libunwind/src/x86/Gos-linux.c

index 4720370..fb9a5e3 100644 (file)
@@ -59,9 +59,7 @@ unw_is_signal_frame (unw_cursor_t *cursor)
      if SA_SIGINFO is specified.
   */
   ip = c->dwarf.ip;
-
-  if (!ip
-      || (*a->access_mem) (as, ip, &w0, 0, arg) < 0
+  if ((*a->access_mem) (as, ip, &w0, 0, arg) < 0
       || (*a->access_mem) (as, ip + 4, &w1, 0, arg) < 0)
     ret = 0;
   else