summaryrefslogtreecommitdiff
path: root/legacy/eet/src
diff options
context:
space:
mode:
authorCedric BAIL <cedric.bail@free.fr>2012-05-30 02:19:07 +0000
committerCedric BAIL <cedric.bail@free.fr>2012-05-30 02:19:07 +0000
commit2c4c47ae0f85bb5ed22aa93201328da7f29d9153 (patch)
tree583f1aa0abf3952f12435b80778efd1d391f119f /legacy/eet/src
parent140e97171b9ee768210b8c131b7a891d214e09e1 (diff)
eet: properly check buffer size during decipher.
Fix bug #1017. SVN revision: 71524
Diffstat (limited to 'legacy/eet/src')
-rw-r--r--legacy/eet/src/lib/eet_cipher.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/legacy/eet/src/lib/eet_cipher.c b/legacy/eet/src/lib/eet_cipher.c
index 2425e22293..9441d8c562 100644
--- a/legacy/eet/src/lib/eet_cipher.c
+++ b/legacy/eet/src/lib/eet_cipher.c
@@ -1219,7 +1219,7 @@ eet_decipher(const void *data,
1219 /* Get the decrypted data size */ 1219 /* Get the decrypted data size */
1220 tmp = *ret; 1220 tmp = *ret;
1221 tmp = ntohl(tmp); 1221 tmp = ntohl(tmp);
1222 if (tmp > tmp_len) 1222 if (tmp > tmp_len || tmp <= 0)
1223 goto on_error; 1223 goto on_error;
1224 1224
1225 /* Update the return values */ 1225 /* Update the return values */