[evolution-patches] ABR patch for camel's rfc2047 encode_string



likely culprit for http://bugzilla.ximian.com/show_bug.cgi?id=62029

when Sun sent us a patch to use is_lwsp() instead of g_unichar_is_space
(), they forgot to make sure that 'c' was <256 (otherwise it would read
past the lookup table and get a bogus value).

Jeff

-- 
Jeffrey Stedfast
Evolution Hacker - Novell, Inc.
fejj ximian com  - www.novell.com
? 24026.patch
? 55280.patch
? 61551.patch
? 62029.patch
? ChangeLog.nonximian
? body
? body.c
? body.txt
? body2.txt
? braindamaged.patch
? cf.c
? charset-map.c
? charset-map.diff
? class.sh
? cmsutil.c
? date.patch
? flags
? foo
? foo.txt
? foo2.txt
? gw-body.txt
? imap
? invalid-content-id.patch
? iso
? iso.c
? lang.patch
? namespace.sh
? patch
? pop3-uidl.patch
? smime
? uid-cache.patch
? providers/tmp
? providers/local/camel-mozilla-folder.c
? providers/local/camel-mozilla-folder.h
? providers/local/camel-mozilla-store.c
? providers/local/camel-mozilla-store.h
? tests/data/camel-mime-tests.tar.gz
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/camel/ChangeLog,v
retrieving revision 1.2229
diff -u -r1.2229 ChangeLog
--- ChangeLog	28 Jul 2004 16:44:08 -0000	1.2229
+++ ChangeLog	28 Jul 2004 18:00:08 -0000
@@ -1,3 +1,8 @@
+2004-07-28  Jeffrey Stedfast  <fejj novell com>
+
+	* camel-mime-utils.c (camel_header_encode_string): Fixed an ABR
+	that may have been responsible for bug #62029.
+
 2004-07-26  Jeffrey Stedfast  <fejj novell com>
 
 	* camel-charset-map.c (camel_charset_best_mask): Changed the logic
Index: camel-mime-utils.c
===================================================================
RCS file: /cvs/gnome/evolution/camel/camel-mime-utils.c,v
retrieving revision 1.210
diff -u -r1.210 camel-mime-utils.c
--- camel-mime-utils.c	18 Jun 2004 20:07:09 -0000	1.210
+++ camel-mime-utils.c	28 Jul 2004 18:00:09 -0000
@@ -1335,7 +1335,7 @@
 			continue;
 		}
 		
-		if (camel_mime_is_lwsp (c) && !last_was_space) {
+		if (c < 256 && camel_mime_is_lwsp (c) && !last_was_space) {
 			/* we've reached the end of a 'word' */
 			if (word && !(last_was_encoded && encoding)) {
 				/* output lwsp between non-encoded words */

Attachment: smime.p7s
Description: S/MIME cryptographic signature



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]