* Fix big endian bug with eet image handling and endianess swapping.
+2012-09-27 Patryk Kaczmarek <patryk.k@samsung.com>
+
+ * Add eet file handle null checks to eet_data_write_cipher(),
+ eet_data_descriptor_decode_cipher(),
+ eet_data_descriptor_encode_cipher(), eet_data_xattr_cipher_get(),
+ eet_data_xattr_cipher_set().
int size;
int val;
+ EINA_SAFETY_ON_NULL_RETURN_VAL(edd, 0);
+
ed = eet_dictionary_get(ef);
data_enc = _eet_data_descriptor_encode(ed, edd, data, &size);
Eet_Free_Context context;
unsigned int deciphered_len = size_in;
+ EINA_SAFETY_ON_NULL_RETURN_VAL(edd, NULL);
+
if (cipher_key && data_in)
if (eet_decipher(data_in, size_in, cipher_key,
strlen(cipher_key), &deciphered, &deciphered_len))
unsigned int ciphered_len = 0;
int size;
+ EINA_SAFETY_ON_NULL_RETURN_VAL(edd, NULL);
+
ret = _eet_data_descriptor_encode(NULL, edd, data_in, &size);
if (cipher_key && ret)
{
void *ret;
ssize_t size;
+ EINA_SAFETY_ON_NULL_RETURN_VAL(edd, NULL);
+
blob = eina_xattr_get(filename, attribute, &size);
if (!blob) return NULL;
int size;
Eina_Bool ret;
+ EINA_SAFETY_ON_NULL_RETURN_VAL(edd, EINA_FALSE);
+
blob = eet_data_descriptor_encode_cipher(edd, data, cipher_key, &size);
if (!blob) return EINA_FALSE;