From 67e69c87dfb2c115d4906cce00d10fca8ac2eb1a Mon Sep 17 00:00:00 2001 From: Joogab Yun Date: Tue, 29 Aug 2017 16:43:27 +0900 Subject: [PATCH] [evas_gl_thread] fixed svace issue Change-Id: I4388b8c6ab636741e3b8b00f3ac13e9f516b6750 WGID: 25206 - suspicious pointer arithmetic --- src/modules/evas/engines/gl_generic/evas_engine.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/evas/engines/gl_generic/evas_engine.c b/src/modules/evas/engines/gl_generic/evas_engine.c index 221cd22..cb9466b 100644 --- a/src/modules/evas/engines/gl_generic/evas_engine.c +++ b/src/modules/evas/engines/gl_generic/evas_engine.c @@ -1832,7 +1832,7 @@ GL_TH_FN(eng_gl_get_pixels)(Evas_Object_Image_Pixels_Get_Cb cb, void *get_pixels thread_data_ptr = evas_gl_thread_cmd_create(EVAS_GL_THREAD_TYPE_GL, sizeof(GL_TH_ST(eng_gl_get_pixels) *) + sizeof(GL_TH_ST(eng_gl_get_pixels)), &thcmd_ref); - *thread_data_ptr = (void *)(thread_data_ptr + sizeof(GL_TH_ST(eng_gl_get_pixels) *)); + *thread_data_ptr = (void *)((char *)thread_data_ptr + sizeof(GL_TH_ST(eng_gl_get_pixels) *)); thread_data = *thread_data_ptr; if (!evas_gl_thread_force_finish()) -- 2.7.4