From: Michael Brown Date: Mon, 7 Jun 2021 12:18:19 +0000 (+0100) Subject: [base64] Include terminating NUL within base64 character array X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=52300ccf98f94d48dbde84626097c7c22cfdf867;p=thirdparty%2Fipxe.git [base64] Include terminating NUL within base64 character array Reported-by: Bernhard M. Wiedemann Signed-off-by: Michael Brown --- 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+/"; /**