summaryrefslogtreecommitdiff
path: root/src/lib/eet
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2018-05-27 17:10:19 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2018-05-27 17:10:19 +0900
commite46a2f95a8638eb869c653f251791c1a5795cf77 (patch)
tree6aa41623c25f237592972e78fea3549f7973b625 /src/lib/eet
parent9edce5e078f8dc49fec2ffd5035dc61cde0ad84b (diff)
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.c2
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,
2279 int required_free = 0; 2279 int required_free = 0;
2280 int size; 2280 int size;
2281 2281
2282 EINA_SAFETY_ON_NULL_RETURN_VAL(edd, NULL);
2282 ed = eet_dictionary_get(ef); 2283 ed = eet_dictionary_get(ef);
2283 2284
2284 if (!cipher_key) 2285 if (!cipher_key)
@@ -2317,6 +2318,7 @@ eet_data_read_cipher_buffer(Eet_File *ef,
2317 int required_free = 0; 2318 int required_free = 0;
2318 int size; 2319 int size;
2319 2320
2321 EINA_SAFETY_ON_NULL_RETURN_VAL(edd, NULL);
2320 ed = eet_dictionary_get(ef); 2322 ed = eet_dictionary_get(ef);
2321 2323
2322 if (!cipher_key) 2324 if (!cipher_key)