Fixed crash when Base64ToByteStream() is only given '=' characters.

This commit is contained in:
Chad Fraleigh
2023-07-09 13:12:22 -07:00
parent b8f998f76a
commit 2bb48b4546

View File

@@ -187,6 +187,9 @@ namespace data
else
return 0;
if(*InBuffer == P64)
return 0;
ps = (unsigned char *)(InBuffer + InCount - 1);
while ( *ps-- == P64 )
outCount--;