Double check patch again, since my wrong logical thinking,
Every width must be considered to rounding up fiting 8 bits.
this new compuation must be correct.
Change-Id: I112b88560b97e7e413f24b6d17ecaff3588d280e
/* Wbmp header identifier is too weak....
Here checks size validation whether it's acutal wbmp or not. */
- if ((((w * h) + 7) >> 3) + position != length)
+ if ((((w + 7) >> 3) * h) + position != length)
{
*error = EVAS_LOAD_ERROR_UNKNOWN_FORMAT;
goto bail;
/* Wbmp header identifier is too weak....
Here checks size validation whether it's acutal wbmp or not. */
- if ((((w * h) + 7) >> 3) + position != length)
+ if ((((w + 7) >> 3) * h) + position != length)
{
*error = EVAS_LOAD_ERROR_UNKNOWN_FORMAT;
goto bail;