Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=a5c169e3d7f3ba527be6f2d75dd66716d49b0a08

commit a5c169e3d7f3ba527be6f2d75dd66716d49b0a08
Author: Janos Kovacs <[EMAIL PROTECTED]>
Date:   Sun Jun 22 11:46:06 2008 +0200

fetchmail-6.3.8-2-i686
* the two patchs
** fetchmail-SA-2008-01.diff
** fetchmail-SA-2008-02.diff

diff --git a/source/network/fetchmail/fetchmail-SA-2008-01.diff 
b/source/network/fetchmail/fetchmail-SA-2008-01.diff
new file mode 100644
index 0000000..83383cb
--- /dev/null
+++ b/source/network/fetchmail/fetchmail-SA-2008-01.diff
@@ -0,0 +1,32 @@
+diff --git a/report.c b/report.c
+index 31d4e48..2a731ac 100644
+- --- a/report.c
++++ b/report.c
+@@ -238,11 +238,17 @@ report_build (FILE *errfp, message, va_alist)
+     rep_ensuresize();
+
+ #if defined(VA_START)
+- -    VA_START (args, message);
+     for ( ; ; )
+     {
++      /*
++       * args has to be initialized before every call of vsnprintf(),
++       * because vsnprintf() invokes va_arg macro and thus args is
++       * undefined after the call.
++       */
++      VA_START(args, message);
+       n = vsnprintf (partial_message + partial_message_size_used, 
partial_message_size - partial_message_size_used,
+                      message, args);
++      va_end (args);
+
+       if (n >= 0
+           && (unsigned)n < partial_message_size - partial_message_size_used)
+@@ -254,7 +260,6 @@ report_build (FILE *errfp, message, va_alist)
+       partial_message_size += 2048;
+       partial_message = REALLOC (partial_message, partial_message_size);
+     }
+- -    va_end (args);
+ #else
+     for ( ; ; )
+     {
+
diff --git a/source/network/fetchmail/fetchmail-SA-2008-02.diff 
b/source/network/fetchmail/fetchmail-SA-2008-02.diff
new file mode 100644
index 0000000..66c16db
--- /dev/null
+++ b/source/network/fetchmail/fetchmail-SA-2008-02.diff
@@ -0,0 +1,14 @@
+Index: sink.c
+===================================================================
+- --- sink.c   (revision 5118)
++++ sink.c     (revision 5119)
+@@ -262,7 +262,7 @@
+     const char *md1 = "MAILER-DAEMON", *md2 = "MAILER-DAEMON@";
+
+     /* don't bounce in reply to undeliverable bounces */
+- -    if (!msg->return_path[0] ||
++    if (!msg || !msg->return_path[0] ||
+       strcmp(msg->return_path, "<>") == 0 ||
+       strcasecmp(msg->return_path, md1) == 0 ||
+       strncasecmp(msg->return_path, md2, strlen(md2)) == 0)
+
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to