From 913de0c29b0eb0e4285c85b50cc448bf25ff8cf6 Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Sat, 22 Feb 2014 12:46:57 +0100 Subject: core: fix uninitialized value in function string_decode_base64 --- src/core/wee-string.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/core') diff --git a/src/core/wee-string.c b/src/core/wee-string.c index 04bd4cb1a..8aae79c6f 100644 --- a/src/core/wee-string.c +++ b/src/core/wee-string.c @@ -2425,6 +2425,10 @@ string_decode_base64 (const char *from, char *to) { length = 0; for (i = 0; i < 4; i++) + { + in[i] = 0; + } + for (i = 0; i < 4; i++) { c = 0; while (ptr_from[0] && (c == 0)) -- cgit v1.2.3