summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2015-04-25 20:14:26 +0200
committerCedric BAIL <cedric@osg.samsung.com>2015-04-25 20:14:26 +0200
commit02bfb82da0dc693a6c14d25d65f47b5630e3db15 (patch)
tree4657d6f87111ff015b2605c33b7b44de65085c1c
parenteaf9822094ac02631216ab0b79849392034b9f8f (diff)
downloadefl-02bfb82da0dc693a6c14d25d65f47b5630e3db15.tar.gz
eet: fix interger overflow
CID 1256196
-rw-r--r--src/lib/eet/eet_lib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/eet/eet_lib.c b/src/lib/eet/eet_lib.c
index ef4d75c7f5..129e93fbd5 100644
--- a/src/lib/eet/eet_lib.c
+++ b/src/lib/eet/eet_lib.c
@@ -1701,7 +1701,7 @@ _base64_dec(const char *file, int *size_ret)
if (tmp)
{
- int len = _b64_dec(tmp, buf, end - buf);
+ size_t len = _b64_dec(tmp, buf, end - buf);
char *str = malloc(end - buf + 1);
strncpy(str, buf, end - buf);
str[end - buf] = 0;