forked from enlightenment/efl
evas xpm loader - fix xpm loader overrun check
coverity CID 1039596 - the code actually was wrong. do not multiple by sizeof(DATA32) for ptr compare here.
This commit is contained in:
parent
95a02295c1
commit
eeab470cf1
|
@ -632,7 +632,7 @@ evas_image_load_file_xpm(Eina_File *f, Evas_Image_Property *prop, void *pixels,
|
|||
if (!tl) break;
|
||||
line = tl;
|
||||
}
|
||||
if (((ptr) && ((ptr - head) >= (w * h * (int)sizeof(DATA32)))) ||
|
||||
if (((ptr) && ((ptr - head) >= (w * h))) ||
|
||||
((context > 1) && (count >= size)))
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue