Fix bug #1017.
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eet@71524
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
2012-05-15 Cedric Bail
* Make eet_dictionary thread safe.
+
+2012-05-30 Cedric Bail
+
+ * Check that gnutls and openssl don't return below zero size during decipher.
Fixes:
* Force destruction of all pending file when shuting down eet.
* Make eet_dictionary thread safe.
+ * Check that gnutls and openssl don't return below zero size during decipher.
Eet 1.6.0
/* Get the decrypted data size */
tmp = *ret;
tmp = ntohl(tmp);
- if (tmp > tmp_len)
+ if (tmp > tmp_len || tmp <= 0)
goto on_error;
/* Update the return values */