e_util_transform: check if input size is under 0 09/212909/3
authorJunseok, Kim <juns.kim@samsung.com>
Wed, 28 Aug 2019 05:53:19 +0000 (14:53 +0900)
committerJunseok, Kim <juns.kim@samsung.com>
Wed, 28 Aug 2019 08:30:02 +0000 (17:30 +0900)
Change-Id: I0f6527fbdd9e3444f8364382671a7d6990da2d3f

src/bin/e_util_transform.c

index a0f1b3cf96999b018593799c4b96875b3307db01..fe5168de9f08baa0c41d52f780fc4785ea6d9738 100644 (file)
@@ -821,6 +821,7 @@ e_util_transform_matrix_inv_rect_coords_get(E_Util_Transform *transform, E_Util_
    double d_inv_map_x = 0.0, d_inv_map_y = 0.0;
 
    if (!out_x || !out_y) return;
+   if ((w <= 0) || (h <= 0)) return;
 
    /* get rectangle's points from vertices. becase transform matrix is different with Evas_Map
     * Evas_Map calculate using transformed rectangle's points, so to remove different these,