mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-31 19:24:42 +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");
|
WOLFSSL_MSG("Bad end of line in Base64 Decode");
|
||||||
return ASN_INPUT_E;
|
return ASN_INPUT_E;
|
||||||
}
|
}
|
||||||
curChar = in[j];
|
|
||||||
|
if (len) {
|
||||||
|
curChar = in[j];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
while (len && curChar == ' ') {
|
while (len > 1 && curChar == ' ') {
|
||||||
/* skip whitespace at beginning of line */
|
/* skip whitespace at beginning of line */
|
||||||
curChar = in[++j];
|
curChar = in[++j];
|
||||||
len--;
|
len--;
|
||||||
|
Reference in New Issue
Block a user