Fixed bug in Base64 decoding.

This commit is contained in:
Vincent Richard 2005-04-09 09:00:53 +00:00
parent 6057891e93
commit 3952df7eaa
2 changed files with 10 additions and 0 deletions

View File

@ -2,6 +2,11 @@
VERSION 0.6.4cvs VERSION 0.6.4cvs
================ ================
2005-04-09 Vincent Richard <vincent@vincent-richard.net>
* encoderB64.cpp: fixed a bug in Base64 decoding. Bytes to be decoded
were not correctly initialized.
2005-04-03 Vincent Richard <vincent@vincent-richard.net> 2005-04-03 Vincent Richard <vincent@vincent-richard.net>
* messaging/*: moved IMAP, POP3, maildir and SMTP files to separate * messaging/*: moved IMAP, POP3, maildir and SMTP files to separate

View File

@ -186,6 +186,11 @@ const utility::stream::size_type encoderB64::decode(utility::inputStream& in, ut
while (bufferPos < bufferLength || !in.eof()) while (bufferPos < bufferLength || !in.eof())
{ {
bytes[0] = '=';
bytes[1] = '=';
bytes[2] = '=';
bytes[3] = '=';
// Need to get more data? // Need to get more data?
if (bufferPos >= bufferLength) if (bufferPos >= bufferLength)
{ {