diff options
author | obache <obache> | 2008-06-19 11:29:49 +0000 |
---|---|---|
committer | obache <obache> | 2008-06-19 11:29:49 +0000 |
commit | 07a66e4465d483f93592ba39b168cfcc119abd56 (patch) | |
tree | 7ffdeffd017858a96525e62875c55b3046f26adc | |
parent | 5ef43367f2ee1f47e4fab286e8c980d86bfc1ff8 (diff) | |
download | pkgsrc-07a66e4465d483f93592ba39b168cfcc119abd56.tar.gz |
Add patch for CVE-2008-2711.
Taken from http://fetchmail.berlios.de/fetchmail-SA-2008-01.txt
Bump PKGREVISION.
-rw-r--r-- | mail/fetchmail/Makefile | 4 | ||||
-rw-r--r-- | mail/fetchmail/distinfo | 3 | ||||
-rw-r--r-- | mail/fetchmail/patches/patch-ab | 34 |
3 files changed, 38 insertions, 3 deletions
diff --git a/mail/fetchmail/Makefile b/mail/fetchmail/Makefile index ba8ae9185a9..2d7f2d8491e 100644 --- a/mail/fetchmail/Makefile +++ b/mail/fetchmail/Makefile @@ -1,7 +1,7 @@ -# $NetBSD: Makefile,v 1.166 2008/04/27 18:14:03 frueauf Exp $ +# $NetBSD: Makefile,v 1.167 2008/06/19 11:29:49 obache Exp $ DISTNAME= fetchmail-6.3.8 -PKGREVISION= 2 +PKGREVISION= 3 CATEGORIES= mail MASTER_SITES= http://download.berlios.de/fetchmail/ \ http://download2.berlios.de/fetchmail/ diff --git a/mail/fetchmail/distinfo b/mail/fetchmail/distinfo index 943e3a0bbe0..611def62159 100644 --- a/mail/fetchmail/distinfo +++ b/mail/fetchmail/distinfo @@ -1,6 +1,7 @@ -$NetBSD: distinfo,v 1.38 2007/09/23 12:48:46 tron Exp $ +$NetBSD: distinfo,v 1.39 2008/06/19 11:29:49 obache Exp $ SHA1 (fetchmail-6.3.8.tar.bz2) = b8e8c51ed6cf53fc398c821fdb29d166c6713bb0 RMD160 (fetchmail-6.3.8.tar.bz2) = 34034f9ae9fe44ba35f0a16d3128d4a9b0001df2 Size (fetchmail-6.3.8.tar.bz2) = 1323515 bytes SHA1 (patch-aa) = d8234f2bbe91003c4cb5c9896dfe33c8226a74de +SHA1 (patch-ab) = 7439c2a09a913fa4cd3d89ff86b4618e81c1185e diff --git a/mail/fetchmail/patches/patch-ab b/mail/fetchmail/patches/patch-ab new file mode 100644 index 00000000000..26d8bd6a4d5 --- /dev/null +++ b/mail/fetchmail/patches/patch-ab @@ -0,0 +1,34 @@ +$NetBSD: patch-ab,v 1.18 2008/06/19 11:29:49 obache Exp $ + +CVE-2008-2711 +http://fetchmail.berlios.de/fetchmail-SA-2008-01.txt + +--- report.c.orig 2006-03-14 08:53:31.000000000 +0000 ++++ report.c +@@ -238,11 +238,17 @@ report_build (FILE *errfp, message, va_a + 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_a + partial_message_size += 2048; + partial_message = REALLOC (partial_message, partial_message_size); + } +- va_end (args); + #else + for ( ; ; ) + { |