backtrace: avoid possible memory corruption have to resolve this asap; 79/21179/2
authorGeunhae LEE <geunhae.lee@samsung.com>
Mon, 12 May 2014 10:54:19 +0000 (19:54 +0900)
committerSeokYeon Hwang <syeon.hwang@samsung.com>
Mon, 19 May 2014 06:54:56 +0000 (23:54 -0700)
Change-Id: Icc56eea02acfdf09017cc4bec550a9a1a6181e76
Signed-off-by: Geunhae LEE <geunhae.lee@samsung.com>
tizen/src/maru_err_table.c

index 29f55d6..b12dcf3 100644 (file)
@@ -265,6 +265,11 @@ void maru_dump_backtrace(void *ptr, int depth)
         pTopFrame = (void *)((PCONTEXT)pContext)->Ebp;
     }
 
+    if (pTopFrame == NULL) {
+        INFO("ebp is null, skip this for now\n");
+        return ;
+    }
+
     nCount = 0;
     currentFrame.pNext = ((struct frame_layout *)pTopFrame)->pNext;
     currentFrame.pReturnAddr = ((struct frame_layout *)pTopFrame)->pReturnAddr;