From 52300ccf98f94d48dbde84626097c7c22cfdf867 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Mon, 7 Jun 2021 13:18:19 +0100 Subject: [PATCH] [base64] Include terminating NUL within base64 character array Reported-by: Bernhard M. Wiedemann Signed-off-by: Michael Brown --- src/core/base64.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/base64.c b/src/core/base64.c index e452f7d41..ec11be261 100644 --- a/src/core/base64.c +++ b/src/core/base64.c @@ -36,7 +36,7 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL ); * */ -static const char base64[64] = +static const char base64[ 64 + 1 /* NUL */ ] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; /**