diff options
author | Jon Trowbridge <trow@ximian.com> | 2001-05-15 05:04:35 +0800 |
---|---|---|
committer | Jon Trowbridge <trow@src.gnome.org> | 2001-05-15 05:04:35 +0800 |
commit | 05817ac1224ed1fc9853095b312dfface4fd3479 (patch) | |
tree | 4c4ff84f10dce0e42dc95ff14a99dd4048439110 /camel/camel-pgp-context.c | |
parent | b63edae65e589775b1169e9111755f00b09bd610 (diff) | |
download | gsoc2013-evolution-05817ac1224ed1fc9853095b312dfface4fd3479.tar.gz gsoc2013-evolution-05817ac1224ed1fc9853095b312dfface4fd3479.tar.zst gsoc2013-evolution-05817ac1224ed1fc9853095b312dfface4fd3479.zip |
Replicate the semantics of the libunicode utf8 functions by returning NULL
2001-05-14 Jon Trowbridge <trow@ximian.com>
* camel-search-private.c (utf8_get): Replicate the semantics of
the libunicode utf8 functions by returning NULL in the arg
on invalid utf8.
* camel-pgp-context.c (pgp_verify): Check for valid utf8,
terminate loop if something looks wrong.
* camel-mime-utils.c (header_encode_phrase_get_words): Properly
check for invalid utf8.
(header_encode_string): Properly check for invalid utf8.
* camel-charset-map.c (camel_charset_step): Properly check for
invalid utf8.
2001-05-14 Jon Trowbridge <trow@ximian.com>
* e-html-utils.c (is_citation): Check for bad utf8.
svn path=/trunk/; revision=9798
Diffstat (limited to 'camel/camel-pgp-context.c')
-rw-r--r-- | camel/camel-pgp-context.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/camel/camel-pgp-context.c b/camel/camel-pgp-context.c index c2e361ce40..c19756a135 100644 --- a/camel/camel-pgp-context.c +++ b/camel/camel-pgp-context.c @@ -992,7 +992,7 @@ pgp_verify (CamelCipherContext *ctx, CamelStream *istream, inptr = diagnostics; inend = inptr + inlen; - while (inptr && inptr < inend) { + while (inptr && inptr < inend && g_unichar_validate (g_utf8_get_char (inptr))) { *outbuf++ = g_utf8_get_char (inptr) & 0xff; inptr = g_utf8_next_char (inptr); } |