e_comp_wl_rsm: add w, h value checking condition 60/178060/2 accepted/tizen/unified/20180509.072945 submit/tizen/20180508.102019
authorJunkyeong Kim <jk0430.kim@samsung.com>
Tue, 8 May 2018 04:38:43 +0000 (13:38 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Tue, 8 May 2018 06:23:59 +0000 (06:23 +0000)
Change-Id: I825b6da9aa0a85ed560649db784a3d5db09a533c
Signed-off-by: Junkyeong Kim <jk0430.kim@samsung.com>
src/bin/e_comp_wl_rsm.c

index 2e8f70d..fa65003 100644 (file)
@@ -1202,7 +1202,9 @@ _remote_source_image_data_save(Thread_Data *td, const char *path, const char *na
    else if (tbm_surface)
      {
          w = tbm_surface_get_width(tbm_surface);
+         EINA_SAFETY_ON_FALSE_RETURN_VAL(w > 0, NULL);
          h = tbm_surface_get_height(tbm_surface);
+         EINA_SAFETY_ON_FALSE_RETURN_VAL(h > 0, NULL);
 
          transform_surface = _remote_source_image_data_transform(td, w, h);
          if (transform_surface)