From 7fe890d5e71590e3014e34625de3d0fdb5d1db0a Mon Sep 17 00:00:00 2001 From: Daniel Pouzzner Date: Wed, 13 Aug 2025 18:00:36 -0500 Subject: [PATCH] wolfcrypt/src/coding.c: clean up comment in Base64_Decode(), per peer review. --- wolfcrypt/src/coding.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/wolfcrypt/src/coding.c b/wolfcrypt/src/coding.c index c9153da58a..adff99433d 100644 --- a/wolfcrypt/src/coding.c +++ b/wolfcrypt/src/coding.c @@ -259,7 +259,8 @@ int Base64_Decode_nonCT(const byte* in, word32 inLen, byte* out, word32* outLen) if (out && *outLen > i) out[i]= '\0'; - *outLen = i; /* Note, does not reflect terminating null, if any. */ + /* Note, *outLen won't reflect the optional terminating null. */ + *outLen = i; return 0; } @@ -346,7 +347,8 @@ int Base64_Decode(const byte* in, word32 inLen, byte* out, word32* outLen) if (out && *outLen > i) out[i]= '\0'; - *outLen = i; /* Note, does not reflect terminating null, if any. */ + /* Note, *outLen won't reflect the optional terminating null. */ + *outLen = i; return 0; }