@fix
Summary: to avoid segfaults with NULL raw data, add checking on NULL to basic eet_image APIS
Reviewers: NikaWhite, cedric, myoungwoon, jpeg
Reviewed By: jpeg
Subscribers: t.naumenko, jpeg
Differential Revision: https://phab.enlightenment.org/D4386
Change-Id: I8a1bdf9df1864e271c33a71361da57fb3ed84374
Signed-off-by: Artem Popov <artem.popov@samsung.com>
unsigned int ciphered_sz = 0;
int size = 0;
+ if (!data)
+ return NULL;
+
switch (lossy)
{
case EET_IMAGE_LOSSLESS:
unsigned int deciphered_sz = 0;
int r = 0;
+ if (!data)
+ return NULL;
+
if (cipher_key)
{
if (!eet_decipher(data, size, cipher_key, strlen(cipher_key),
void *deciphered_d = NULL;
unsigned int deciphered_sz = 0;
+ if (!data)
+ return NULL;
+
if (cipher_key)
{
if (!eet_decipher(data, size, cipher_key, strlen(cipher_key),
void *deciphered_d = NULL;
unsigned int deciphered_sz = 0;
+ if (!data)
+ return NULL;
+
if (cipher_key)
{
if (!eet_decipher(data, size, cipher_key, strlen(cipher_key),