diff options
author | Michael Brown <mcb30@ipxe.org> | 2021-06-07 13:18:19 +0100 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2021-06-07 13:20:02 +0100 |
commit | 52300ccf98f94d48dbde84626097c7c22cfdf867 (patch) | |
tree | a84fd9490f04c283d2097f1c9c940da97f92cc83 | |
parent | 92807f5759e0207aaa909ee0e1429478f210aff1 (diff) | |
download | ipxe-52300ccf98f94d48dbde84626097c7c22cfdf867.tar.gz |
[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.c | 2 |
1 files changed, 1 insertions, 1 deletions
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+/"; /** |