mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-22 00:59:08 +01:00
Fixed crash when Base64ToByteStream() is only given '=' characters.
This commit is contained in:
parent
b8f998f76a
commit
2bb48b4546
1 changed files with 3 additions and 0 deletions
|
@ -187,6 +187,9 @@ namespace data
|
||||||
else
|
else
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
if(*InBuffer == P64)
|
||||||
|
return 0;
|
||||||
|
|
||||||
ps = (unsigned char *)(InBuffer + InCount - 1);
|
ps = (unsigned char *)(InBuffer + InCount - 1);
|
||||||
while ( *ps-- == P64 )
|
while ( *ps-- == P64 )
|
||||||
outCount--;
|
outCount--;
|
||||||
|
|
Loading…
Add table
Reference in a new issue