summaryrefslogtreecommitdiffstats
path: root/base64.c
AgeCommit message (Collapse)Author
2020-05-04olen length requirement was too conservativeRemco Rijnders
When converting binary values to Base 64 encoding, we go from a 8 bit representation to a 6 bit representation. As a result, we need extra space to store the result compared to the input value being converted. In the current implementation, the requirements on the size of the output buffer are too conservative; We only have to check if the remaining space is larger than 4 (3 input bytes get converted into 4 Base64 encoded output bytes, plus allowing for a terminating '\0' character) rather than 10.
2019-03-10Minor buffer handling code cleanup.Kevin McCarthy
Use mutt_buffer_len() and mutt_buffer_clear() to make the code a bit clearer. There are still places in the code that manipulate the buffers directly (pattern.c, for example), but that doesn't mean we shouldn't abstract the buffer where we can. Add comments in a couple places where unusual buffer manipulation is occurring.
2019-02-12Add mutt_buffer helpers for base64 conversion.Kevin McCarthy
Add mutt_buffer_from_base64() mutt_buffer_to_base64() to help with transitioning to buffers.
2018-12-31Remove trailing whitespace.Kevin McCarthy
The result of find . -name "*.[ch]" -exec emacs -batch {} \ --eval="(progn (delete-trailing-whitespace) (and (buffer-modified-p) (save-buffer)))" \;
2018-07-15Check outbuf length in mutt_from_base64()Kevin McCarthy
The obuf can be overflowed in auth_cram.c, and possibly auth_gss.c. Thanks to Jeriko One for the bug report.
2005-09-17Gah, forgot the zip code when updating the FSF address...Brendan Cully
2005-09-17Update FSF address (via sed, I hope nothing got mangled). Closes: #2071.Brendan Cully
2005-02-03Add config.h to the top of every C file that could possibly want it.Brendan Cully
Remove it from mutt.h
2001-01-08Fix and/or check more fishy code.Thomas Roessler
2000-03-14Add the original fetchmail copyright notice.Thomas Roessler
2000-03-03The FSF apparently has moved.Thomas Roessler
1999-08-20Brendan Cully's latest IMAP clean-up.Thomas Roessler