From: Changyeon Lee Date: Mon, 21 May 2018 02:49:16 +0000 (+0900) Subject: tbm_surface: fixed deref after null X-Git-Tag: accepted/tizen/unified/20180522.053035~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fdfd4ceff18222e003e1913e83d5fe3d468ad362;hp=927a1e5d8f2a3dbb4977ea86ce13907b8bcd022e;p=platform%2Fcore%2Fuifw%2Flibtbm.git tbm_surface: fixed deref after null Change-Id: I5601f2ff3d732423b6dcc0393188d4499c973827 --- diff --git a/src/tbm_surface_internal.c b/src/tbm_surface_internal.c index 6edc597..2fc3d8c 100644 --- a/src/tbm_surface_internal.c +++ b/src/tbm_surface_internal.c @@ -2609,7 +2609,7 @@ tbm_surface_internal_get_damage(tbm_surface_h surface, int *x, int *y, int *widt if (height) *height = surf->damage.height; TBM_TRACE_SURFACE_INTERNAL("tbm_surface(%p) x(%d) y(%d) width(%d) height(%d)\n", - surface, *x, *y, *width, *height); + surface, surf->damage.x, surf->damage.y, surf->damage.width, surf->damage.height); _tbm_surface_mutex_unlock();