Undefined behavior: an integer underflow may occur due to arithmetic operation (multiplication) between variables 'y' and 'w', which are equal to '2' and '-
2147483648' respectively
Change-Id: I7e658cf809ce97f2112093278fb310ceee9efbe4
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
{
/* FIXME : Assuming we're dealing with 32bit image, need to check if there's any other cases */
SclNinePatchInfo ret = {0};
- unsigned int *data = (unsigned int*)evas_object_image_data_get(image_data, EINA_FALSE);
+ unsigned int *data = NULL;
+
+ if (w < 0 || h < 0) return ret;
+
+ data = (unsigned int*)evas_object_image_data_get(image_data, EINA_FALSE);
+
if (data) {
int x, y;
sclboolean found;