Mercurial > dovecot > original-hg > dovecot-2.1
changeset 14925:fa9387588430
Fixed checking UTF8 input validity.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Mon, 25 Feb 2013 17:23:25 +0200 |
parents | cfd3f39102bd |
children | 0af0def22533 |
files | src/lib/unichar.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib/unichar.c Mon Feb 25 16:44:57 2013 +0200 +++ b/src/lib/unichar.c Mon Feb 25 17:23:25 2013 +0200 @@ -38,7 +38,7 @@ int uni_utf8_get_char_n(const void *_input, size_t max_len, unichar_t *chr_r) { static unichar_t lowest_valid_chr_table[] = - { 0, 0, 0x80, 0x800, 0x10000, 0x20000, 0x40000 }; + { 0, 0, 0x80, 0x800, 0x10000, 0x200000, 0x4000000 }; const unsigned char *input = _input; unichar_t chr, lowest_valid_chr; unsigned int i, len;