Browse Source

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

pull/1946/head
Chad Fraleigh 1 year ago
parent
commit
2bb48b4546
No known key found for this signature in database
GPG Key ID: 2415C39758458A8F
  1. 3
      libi2pd/Base.cpp

3
libi2pd/Base.cpp

@ -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…
Cancel
Save