mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 18:57:27 +02:00
Fix length calculations in Base64_SkipNewline
ZD 12328
This commit is contained in:
@ -136,9 +136,12 @@ static WC_INLINE int Base64_SkipNewline(const byte* in, word32 *inLen, word32 *o
|
||||
WOLFSSL_MSG("Bad end of line in Base64 Decode");
|
||||
return ASN_INPUT_E;
|
||||
}
|
||||
|
||||
if (len) {
|
||||
curChar = in[j];
|
||||
}
|
||||
while (len && curChar == ' ') {
|
||||
}
|
||||
while (len > 1 && curChar == ' ') {
|
||||
/* skip whitespace at beginning of line */
|
||||
curChar = in[++j];
|
||||
len--;
|
||||
|
Reference in New Issue
Block a user