diff options
author | Vincent Richard <[email protected]> | 2005-04-09 09:00:53 +0000 |
---|---|---|
committer | Vincent Richard <[email protected]> | 2005-04-09 09:00:53 +0000 |
commit | 3952df7eaa222bb9f911c5cad8cc796ee3cd9a05 (patch) | |
tree | 077908409ac909b73d05bcdaaa91455b89043649 | |
parent | Fixed warning. (diff) | |
download | vmime-3952df7eaa222bb9f911c5cad8cc796ee3cd9a05.tar.gz vmime-3952df7eaa222bb9f911c5cad8cc796ee3cd9a05.zip |
Fixed bug in Base64 decoding.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | src/encoderB64.cpp | 5 |
2 files changed, 10 insertions, 0 deletions
@@ -2,6 +2,11 @@ VERSION 0.6.4cvs ================ +2005-04-09 Vincent Richard <[email protected]> + + * encoderB64.cpp: fixed a bug in Base64 decoding. Bytes to be decoded + were not correctly initialized. + 2005-04-03 Vincent Richard <[email protected]> * messaging/*: moved IMAP, POP3, maildir and SMTP files to separate diff --git a/src/encoderB64.cpp b/src/encoderB64.cpp index 405eac25..bb78ac6a 100644 --- a/src/encoderB64.cpp +++ b/src/encoderB64.cpp @@ -186,6 +186,11 @@ const utility::stream::size_type encoderB64::decode(utility::inputStream& in, ut while (bufferPos < bufferLength || !in.eof()) { + bytes[0] = '='; + bytes[1] = '='; + bytes[2] = '='; + bytes[3] = '='; + // Need to get more data? if (bufferPos >= bufferLength) { |