ecore_x: Avoid crash on NULL

This happens in E with software compositing, since E's commit
5702f0975e890f07cfb. E should be fixed shortly but segv is not
acceptable. Without segv E is still massively broken so it's
not like the bug would be hidden (large black areas in windows,
after switch vdesks with enough windows).
This commit is contained in:
Jean-Philippe Andre 2017-08-02 11:15:08 +09:00
parent ea5675a6a0
commit 5c8670fb2b
1 changed files with 3 additions and 0 deletions

View File

@ -502,6 +502,9 @@ ecore_x_image_to_argb_convert(void *src,
};
int mode = 0;
EINA_SAFETY_ON_NULL_RETURN_VAL(src, EINA_FALSE);
EINA_SAFETY_ON_NULL_RETURN_VAL(dst, EINA_FALSE);
sbpp *= 8;
n = vis->map_entries;