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)
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)
1701 1701
1702 if (tmp) 1702 if (tmp)
1703 { 1703 {
1704 int len = _b64_dec(tmp, buf, end - buf); 1704 size_t len = _b64_dec(tmp, buf, end - buf);
1705 char *str = malloc(end - buf + 1); 1705 char *str = malloc(end - buf + 1);
1706 strncpy(str, buf, end - buf); 1706 strncpy(str, buf, end - buf);
1707 str[end - buf] = 0; 1707 str[end - buf] = 0;