summaryrefslogtreecommitdiff
path: root/src/lib/eet
diff options
context:
space:
mode:
authorArtem Popov <artem.popov@samsung.com>2016-11-28 10:44:59 -0800
committerCedric BAIL <cedric@osg.samsung.com>2016-11-28 11:35:27 -0800
commit30693b84875c6f1e0b9a30678ba3e64244cd6daf (patch)
tree949395d2b18b8265051144f6c7324c7fc935bbcb /src/lib/eet
parente190173338648bcbeb788118230595efe31faa32 (diff)
eet: add checking on null to eet_data_write_cipher and EINA_ARG_NONNULL to dump API @fix
Summary: add checking on null to eet_data_write_cipher and EINA_ARG_NONNULL to eet_data_dump* and eet_data_test_dump* API Reviewers: NikaWhite, myoungwoon, cedric Reviewed By: cedric Subscribers: jpeg, t.naumenko Differential Revision: https://phab.enlightenment.org/D4433 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
Diffstat (limited to 'src/lib/eet')
-rw-r--r--src/lib/eet/Eet.h8
-rw-r--r--src/lib/eet/eet_data.c1
2 files changed, 5 insertions, 4 deletions
diff --git a/src/lib/eet/Eet.h b/src/lib/eet/Eet.h
index c69c1153b4..39f060a170 100644
--- a/src/lib/eet/Eet.h
+++ b/src/lib/eet/Eet.h
@@ -3244,7 +3244,7 @@ EAPI int
3244eet_data_text_dump(const void *data_in, 3244eet_data_text_dump(const void *data_in,
3245 int size_in, 3245 int size_in,
3246 Eet_Dump_Callback dumpfunc, 3246 Eet_Dump_Callback dumpfunc,
3247 void *dumpdata); 3247 void *dumpdata) EINA_ARG_NONNULL(3);
3248 3248
3249/** 3249/**
3250 * Take an ascii encoding from eet_data_text_dump() and re-encode in binary. 3250 * Take an ascii encoding from eet_data_text_dump() and re-encode in binary.
@@ -3297,7 +3297,7 @@ EAPI int
3297eet_data_dump(Eet_File *ef, 3297eet_data_dump(Eet_File *ef,
3298 const char *name, 3298 const char *name,
3299 Eet_Dump_Callback dumpfunc, 3299 Eet_Dump_Callback dumpfunc,
3300 void *dumpdata); 3300 void *dumpdata) EINA_ARG_NONNULL(3);
3301 3301
3302/** 3302/**
3303 * Take an ascii encoding from eet_data_dump() and re-encode in binary. 3303 * Take an ascii encoding from eet_data_dump() and re-encode in binary.
@@ -4074,7 +4074,7 @@ eet_data_text_dump_cipher(const void *data_in,
4074 const char *cipher_key, 4074 const char *cipher_key,
4075 int size_in, 4075 int size_in,
4076 Eet_Dump_Callback dumpfunc, 4076 Eet_Dump_Callback dumpfunc,
4077 void *dumpdata); 4077 void *dumpdata) EINA_ARG_NONNULL(4);
4078 4078
4079/** 4079/**
4080 * Take an ascii encoding from eet_data_text_dump() and re-encode 4080 * Take an ascii encoding from eet_data_text_dump() and re-encode
@@ -4133,7 +4133,7 @@ eet_data_dump_cipher(Eet_File *ef,
4133 const char *name, 4133 const char *name,
4134 const char *cipher_key, 4134 const char *cipher_key,
4135 Eet_Dump_Callback dumpfunc, 4135 Eet_Dump_Callback dumpfunc,
4136 void *dumpdata); 4136 void *dumpdata) EINA_ARG_NONNULL(4);
4137 4137
4138/** 4138/**
4139 * Take an ascii encoding from eet_data_dump() and re-encode in 4139 * Take an ascii encoding from eet_data_dump() and re-encode in
diff --git a/src/lib/eet/eet_data.c b/src/lib/eet/eet_data.c
index d4ba25f0eb..865eee9e86 100644
--- a/src/lib/eet/eet_data.c
+++ b/src/lib/eet/eet_data.c
@@ -2397,6 +2397,7 @@ eet_data_write_cipher(Eet_File *ef,
2397 int val; 2397 int val;
2398 2398
2399 EINA_SAFETY_ON_NULL_RETURN_VAL(edd, 0); 2399 EINA_SAFETY_ON_NULL_RETURN_VAL(edd, 0);
2400 EINA_SAFETY_ON_NULL_RETURN_VAL(data, 0);
2400 2401
2401 ed = eet_dictionary_get(ef); 2402 ed = eet_dictionary_get(ef);
2402 2403