aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Brown <mcb30@ipxe.org>2021-06-07 13:18:19 +0100
committerMichael Brown <mcb30@ipxe.org>2021-06-07 13:20:02 +0100
commit52300ccf98f94d48dbde84626097c7c22cfdf867 (patch)
treea84fd9490f04c283d2097f1c9c940da97f92cc83
parent92807f5759e0207aaa909ee0e1429478f210aff1 (diff)
downloadipxe-52300ccf98f94d48dbde84626097c7c22cfdf867.zip
ipxe-52300ccf98f94d48dbde84626097c7c22cfdf867.tar.gz
ipxe-52300ccf98f94d48dbde84626097c7c22cfdf867.tar.bz2
[base64] Include terminating NUL within base64 character array
Reported-by: Bernhard M. Wiedemann <bwiedemann@suse.de> Signed-off-by: Michael Brown <mcb30@ipxe.org>
-rw-r--r--src/core/base64.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/base64.c b/src/core/base64.c
index e452f7d..ec11be2 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+/";
/**