tbm_surface: fixed deref after null 58/179658/4
authorChangyeon Lee <cyeon.lee@samsung.com>
Mon, 21 May 2018 02:49:16 +0000 (11:49 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Mon, 21 May 2018 03:31:39 +0000 (03:31 +0000)
Change-Id: I5601f2ff3d732423b6dcc0393188d4499c973827

src/tbm_surface_internal.c

index 6edc597..2fc3d8c 100644 (file)
@@ -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();