forked from enlightenment/efl
emile_image: fix possible segmentation fault in AGRY88
Summary: - ptrag is set NULL and is allocated only when prop is rotated. but *ptrag = 0xFF00 | ptr[0]; without checking rotation. Reviewers: jpeg, cedric, Hermet Reviewed By: Hermet Subscribers: conr2d Differential Revision: https://phab.enlightenment.org/D4463
This commit is contained in:
parent
68470a50fe
commit
44716502fc
|
@ -1860,10 +1860,11 @@ _emile_jpeg_data(Emile_Image *image,
|
|||
else
|
||||
{
|
||||
ptr2 = pixels;
|
||||
ptrag = pixels;
|
||||
ptrg = pixels;
|
||||
}
|
||||
|
||||
if (!ptr2 && !ptrg)
|
||||
if (!ptr2 && !ptrag && !ptrg)
|
||||
{
|
||||
*error = EMILE_IMAGE_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED;
|
||||
goto on_error;
|
||||
|
|
Loading…
Reference in New Issue