From 1f7837babf5904a6ac58c59392b0319456f1f56e Mon Sep 17 00:00:00 2001 From: Geunhae LEE Date: Mon, 12 May 2014 19:54:19 +0900 Subject: [PATCH] backtrace: avoid possible memory corruption have to resolve this asap; Change-Id: Icc56eea02acfdf09017cc4bec550a9a1a6181e76 Signed-off-by: Geunhae LEE --- tizen/src/maru_err_table.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tizen/src/maru_err_table.c b/tizen/src/maru_err_table.c index 29f55d699d..b12dcf369b 100644 --- a/tizen/src/maru_err_table.c +++ b/tizen/src/maru_err_table.c @@ -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; -- 2.34.1