summaryrefslogtreecommitdiff
path: root/mail/libspf2
diff options
context:
space:
mode:
authortron <tron@pkgsrc.org>2009-09-08 10:36:27 +0000
committertron <tron@pkgsrc.org>2009-09-08 10:36:27 +0000
commita4e4d7f3709882ad5f2faa16ea2b1f3dc7c0e5c0 (patch)
treea0e498d05e59f26b5ec8867477c610556f7a79aa /mail/libspf2
parent99df789c5f677db1684d5b6725132c283dbbd784 (diff)
downloadpkgsrc-a4e4d7f3709882ad5f2faa16ea2b1f3dc7c0e5c0.tar.gz
Fix an abort() caused by miscalculating the size of an internal buffer.
This can crash applications using "libspf2" (e.g. "milter-greylist") in an e-mail gets delivered via SMTP over IPv6 depending on the remote machine's IPv6 address.
Diffstat (limited to 'mail/libspf2')
-rw-r--r--mail/libspf2/Makefile3
-rw-r--r--mail/libspf2/distinfo3
-rw-r--r--mail/libspf2/patches/patch-aa18
3 files changed, 22 insertions, 2 deletions
diff --git a/mail/libspf2/Makefile b/mail/libspf2/Makefile
index 4bed6bcc3fb..1c7b78cbc3f 100644
--- a/mail/libspf2/Makefile
+++ b/mail/libspf2/Makefile
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.6 2009/07/17 18:00:18 adrianp Exp $
+# $NetBSD: Makefile,v 1.7 2009/09/08 10:36:27 tron Exp $
DISTNAME= libspf2-1.2.9
+PKGREVISION= 1
CATEGORIES= mail
MASTER_SITES= http://www.libspf2.org/spf/
diff --git a/mail/libspf2/distinfo b/mail/libspf2/distinfo
index 263f4cab5ed..17c56afac56 100644
--- a/mail/libspf2/distinfo
+++ b/mail/libspf2/distinfo
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.3 2009/01/10 23:34:13 adrianp Exp $
+$NetBSD: distinfo,v 1.4 2009/09/08 10:36:27 tron Exp $
SHA1 (libspf2-1.2.9.tar.gz) = 15dfe3b9172180654f4de4dd85f3f01e3bc11503
RMD160 (libspf2-1.2.9.tar.gz) = d0754d47e297a00038e4185e17704a24d38a4888
Size (libspf2-1.2.9.tar.gz) = 518001 bytes
+SHA1 (patch-aa) = 81f60333222b510cb511b80aedbb679d2212ab0d
diff --git a/mail/libspf2/patches/patch-aa b/mail/libspf2/patches/patch-aa
new file mode 100644
index 00000000000..9041c339cc4
--- /dev/null
+++ b/mail/libspf2/patches/patch-aa
@@ -0,0 +1,18 @@
+$NetBSD: patch-aa,v 1.1 2009/09/08 10:36:27 tron Exp $
+
+Fix an abort() caused by miscalculating the size of an internal buffer.
+This can crash applications using "libspf2" (e.g. "milter-greylist")
+in an e-mail gets delivered via SMTP over IPv6 depending on the
+remote machine's IPv6 address.
+
+--- src/libspf2/spf_expand.c.orig 2008-11-03 21:29:00.000000000 +0000
++++ src/libspf2/spf_expand.c 2009-09-08 11:27:52.000000000 +0100
+@@ -245,7 +245,7 @@
+ case PARM_CLIENT_IP: /* SMTP client IP */
+ #ifdef COMPUTE
+ if (compute_length) {
+- len = sizeof(ip6_buf);
++ len = sizeof(ip6_rbuf);
+ if (d->dv.url_encode)
+ len *= 3;
+ buflen += len;