From 541a6bf4538422f0e274f17ae2ac6d871aaf78b4 Mon Sep 17 00:00:00 2001 From: Klemens Date: Tue, 4 Oct 2022 15:00:27 +0800 Subject: [PATCH] base64::decode initializes local variables. Closes #2282 --- include/boost/beast/core/detail/base64.ipp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/beast/core/detail/base64.ipp b/include/boost/beast/core/detail/base64.ipp index 4fc3c677..5a1bcfc3 100644 --- a/include/boost/beast/core/detail/base64.ipp +++ b/include/boost/beast/core/detail/base64.ipp @@ -154,7 +154,7 @@ decode(void* dest, char const* src, std::size_t len) { char* out = static_cast(dest); auto in = reinterpret_cast(src); - unsigned char c3[3], c4[4]; + unsigned char c3[3], c4[4] = {0,0,0,0}; int i = 0; int j = 0;