Patch for serious bug in 1.0.3
- From: Ettore Perazzoli <ettore ximian com>
- To: GNOME Announces <gnome-announce-list gnome org>, Evolution Hackers Mailing List <evolution-hackers ximian com>, Evolution Mailing List <evolution ximian com>
- Subject: Patch for serious bug in 1.0.3
- Date: 03 May 2002 14:21:10 -0400
Hello,
as reported on the mailing list yesterday, Evolution 1.0.3 has a serious
bug that can make it eat all the memory on your system and then crash
when downloading certain messages with invalid headers.
The attached patch fixes the problem. It is strongly advised that users
and distributions apply this patch to their builds ASAP, until a new
tarball with the fix is released by the Evolution team. (For technical
reasons, this cannot happen until next week.)
Thanks,
--
Ettore
Index: camel-mime-utils.c
===================================================================
RCS file: /cvs/gnome/evolution/camel/camel-mime-utils.c,v
retrieving revision 1.146.6.6
diff -u -r1.146.6.6 camel-mime-utils.c
--- camel-mime-utils.c 12 Apr 2002 06:43:56 -0000 1.146.6.6
+++ camel-mime-utils.c 3 May 2002 03:05:46 -0000
@@ -2367,7 +2367,7 @@
} else {
/* Fix for stupidly-broken-mailers that like to put '.''s in names unquoted */
/* see bug #8147 */
- if (*inptr && *inptr != '<') {
+ while (!pre && *inptr && *inptr != '<') {
w(g_warning("Working around stupid mailer bug #5: unescaped characters in names"));
name = g_string_append_c(name, *inptr++);
pre = header_decode_word(&inptr);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]