diff options
author | Carsten Haitzler (Rasterman) <raster@rasterman.com> | 2018-05-27 17:10:19 +0900 |
---|---|---|
committer | Carsten Haitzler (Rasterman) <raster@rasterman.com> | 2018-05-27 17:10:19 +0900 |
commit | e46a2f95a8638eb869c653f251791c1a5795cf77 (patch) | |
tree | 6aa41623c25f237592972e78fea3549f7973b625 /src/lib/eet | |
parent | 9edce5e078f8dc49fec2ffd5035dc61cde0ad84b (diff) | |
download | efl-e46a2f95a8638eb869c653f251791c1a5795cf77.tar.gz |
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...
Diffstat (limited to 'src/lib/eet')
-rw-r--r-- | src/lib/eet/eet_data.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/eet/eet_data.c b/src/lib/eet/eet_data.c index bef8d7c071..fee6125764 100644 --- a/src/lib/eet/eet_data.c +++ b/src/lib/eet/eet_data.c @@ -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) |