79454ba23ef6baf56997cd3cc23123eb69ae4f4c |
|
24-Mar-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-mail: Fix read overflow / crash in message_header_decode()
If the input string was "=?charset?Q|B?text?", the code attempted to look up
the character after it. And if it was "=", the callback was called with
size=-1, which ends up in a crash. |
19ed8f08b23d6ed204e6b27e5d1c0c6fe6bb11dd |
|
15-Nov-2015 |
Phil Carmody <phil@dovecot.fi> |
various - remove 8-bit characters from literal strings in test cases
C has a portable way of expressing characters not in the basic character
set, namely \xNN escaping. Otherwise, the interpretation of the raw utf-8
is implentation dependent. This has the benefit of making some tests'
expected output more obvious, such as "=c3=a4" matching "\xC3\xA4", even
if it hinders the readability of some natural-language-based tests.
Signed-off-by: Phil Carmody <phil@dovecot.fi> |