dovecot-2.2: Fixed checking UTF8 input validity.
    dovecot at dovecot.org 
    dovecot at dovecot.org
       
    Mon Feb 25 17:23:39 EET 2013
    
    
  
details:   http://hg.dovecot.org/dovecot-2.2/rev/2aee41cd72b0
changeset: 15939:2aee41cd72b0
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Feb 25 17:23:25 2013 +0200
description:
Fixed checking UTF8 input validity.
diffstat:
 src/lib/unichar.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r c0deb3a9bb3d -r 2aee41cd72b0 src/lib/unichar.c
--- a/src/lib/unichar.c	Mon Feb 25 17:07:55 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;
    
    
More information about the dovecot-cvs
mailing list