diff --git a/src/common/base64.cpp b/src/common/base64.cpp index 53493f034..4a3d8f7af 100644 --- a/src/common/base64.cpp +++ b/src/common/base64.cpp @@ -122,6 +122,7 @@ base64_decode(const std::string &src, unsigned int values_idx; unsigned char values[4]; + memset(values, 0, 4); for (values_idx = 0; values_idx < in_pos; values_idx++) { values[values_idx] = (('A' <= in[values_idx]) && ('Z' >= in[values_idx])) ? in[values_idx] - 'A'