From 4b864bf3a2f811689bef0d7c1004510372f3a4a9 Mon Sep 17 00:00:00 2001 From: Konstantin Baladurin Date: Fri, 3 Jul 2015 11:15:55 +0300 Subject: [PATCH] [FIX] fix prevent ----------------------------------------------------------------- | CID | Type | File | Function | |---------------------------------------------------------------| | 452697 | STRING_OVERFLOW | btsym.c | da_backtrace_symbols | ----------------------------------------------------------------- Change-Id: Ifa7071f249f06d93e0e40f5f234153ad25a4d67c Signed-off-by: Konstantin Baladurin --- helper/btsym.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.7.4