tbm_bufmgr_debug_show: increasing size of title and data to avoid memory overflow 10/114510/2
authorAmit Agrawal <a.agrawal@samsung.com>
Mon, 13 Feb 2017 14:03:37 +0000 (19:33 +0530)
committerSooChan Lim <sc1.lim@samsung.com>
Tue, 14 Feb 2017 03:49:23 +0000 (19:49 -0800)
Change-Id: I763f403155aa182140e914c2b6b8feb51493c42b
Signed-off-by: Amit Agrawal <a.agrawal@samsung.com>
src/tbm_bufmgr.c

index 9b79789..9c605e9 100644 (file)
@@ -1444,7 +1444,7 @@ tbm_get_last_error(void)
 void
 tbm_bufmgr_debug_show(tbm_bufmgr bufmgr)
 {
-       char app_name[255] = {0,}, title[255] = {0,};
+       char app_name[255] = {0,}, title[512] = {0,};
        tbm_surface_debug_data *debug_old_data = NULL;
 
        pthread_mutex_lock(&gLock);
@@ -1479,7 +1479,7 @@ tbm_bufmgr_debug_show(tbm_bufmgr bufmgr)
                int surf_cnt = 0;
 
                LIST_FOR_EACH_ENTRY(surf, &bufmgr->surf_list, item_link) {
-                       char data[255] = {0,};
+                       char data[512] = {0,};
                        unsigned int pid;
                        int i;