From: Konstantin Baladurin Date: Fri, 3 Jul 2015 08:15:55 +0000 (+0300) Subject: [FIX] fix prevent X-Git-Tag: submit/tizen/20151105.071836~29 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4b864bf3a2f811689bef0d7c1004510372f3a4a9;p=platform%2Fcore%2Fsystem%2Fswap-probe.git [FIX] fix prevent ----------------------------------------------------------------- | CID | Type | File | Function | |---------------------------------------------------------------| | 452697 | STRING_OVERFLOW | btsym.c | da_backtrace_symbols | ----------------------------------------------------------------- Change-Id: Ifa7071f249f06d93e0e40f5f234153ad25a4d67c Signed-off-by: Konstantin Baladurin --- diff --git a/helper/btsym.c b/helper/btsym.c index 95f01e7..3618a50 100755 --- a/helper/btsym.c +++ b/helper/btsym.c @@ -341,7 +341,7 @@ char** da_backtrace_symbols (void* const* array, int size) else { int len; - if(map->l_origin) + if(map->l_origin && strlen(map->l_origin) < FILEPATH_MAX) { strcpy(filepath, map->l_origin); len = strlen(filepath);