Expression cancel_keycode - 8U, which is equal to
4294967288, where cancel_keycode is known to be equal to 0, underflows the type that receives it, an unsigned integer 32 bits wide.
Change-Id: I3fc0178cc2159b123b5d2c637c813b958132f31f
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
ELOGF("Key", "Failed to send key cancel for %d key, Cancel key is not supported\n", ec, keycode);
return EINA_FALSE;
}
+
+ EINA_SAFETY_ON_TRUE_RETURN_VAL(cancel_keycode < 8, EINA_FALSE);
+
cancel_keycode = cancel_keycode - 8;
- EINA_SAFETY_ON_TRUE_RETURN_VAL(cancel_keycode <= 0, EINA_FALSE);
wl_keycode = keycode - 8;
EINA_SAFETY_ON_TRUE_RETURN_VAL(wl_keycode <= 0, EINA_FALSE);