forked from enlightenment/efl
emile - handle possible invalid compress type more gracefully
check length return is < 0 and handle that. @fix
This commit is contained in:
parent
f682178017
commit
b0232b5e1d
|
@ -44,6 +44,7 @@ emile_compress(const Eina_Binbuf *data,
|
|||
Eina_Bool ok = EINA_FALSE;
|
||||
|
||||
length = _emile_compress_buffer_size(data, t);
|
||||
if (length < 0) return NULL;
|
||||
|
||||
compact = malloc(length);
|
||||
if (!compact)
|
||||
|
|
Loading…
Reference in New Issue