3fbc12d56ede063e9e049496b620a1e2934e418e |
|
29-Apr-2015 |
Timo Sirainen <tss@iki.fi> |
lib-imap: imap_utf7_to_utf8() returns failure now for encoded NULs.
All the callers change the string to NUL-terminated string, so the earlier
behavior was just truncating the string at the encoded NUL. It's a bit safer
to just return failure so in future if the callers didn't convert the string
to NUL-terminated string it wouldn't be handled inconsistently in different
places. |
585017cae29021070c7eba527720e91a64e7538f |
|
28-Jul-2014 |
Phil Carmody <phil@dovecot.fi> |
lib-imap: imap-utf7 - reject encoded simple ASCII
"Modified BASE64 MUST NOT be used to represent any printing US-ASCII
character which can represent itself."
"The character "&" (0x26) is represented by the two-octet sequence "&-""
Therefore any mBASE64 sequence containing any character between 0x20 and
0x7e is invalid.
Signed-off-by: Phil Carmody <phil@dovecot.fi> |
807d831b2625cc45b55f9576aa744e8a038b1bfc |
|
28-Jul-2014 |
Phil Carmody <phil@dovecot.fi> |
lib-imap: imap-utf7 - reject bogus characters in the mUTF7
Only 0x20..0x7e are permitted, as "All other characters (octet values
0x00-0x1f and 0x7f-0xff) are represented in modified BASE64, ...".
Signed-off-by: Phil Carmody <phil@dovecot.fi> |