eet - check for null edd's and don't decode junk data

in the process of fixing a bug in elm config i found the eet will
decode junk data with a null edd. check for these where it was missing
and return null so it's easier to see a problem. not really a fix as
it's invalid use of the api, but it's nicer to debug...
This commit is contained in:
Carsten Haitzler 2018-05-27 17:10:19 +09:00
parent 9edce5e078
commit e46a2f95a8
1 changed files with 2 additions and 0 deletions

View File

@ -2279,6 +2279,7 @@ eet_data_read_cipher(Eet_File *ef,
int required_free = 0;
int size;
EINA_SAFETY_ON_NULL_RETURN_VAL(edd, NULL);
ed = eet_dictionary_get(ef);
if (!cipher_key)
@ -2317,6 +2318,7 @@ eet_data_read_cipher_buffer(Eet_File *ef,
int required_free = 0;
int size;
EINA_SAFETY_ON_NULL_RETURN_VAL(edd, NULL);
ed = eet_dictionary_get(ef);
if (!cipher_key)