Subversion Repositories libspf2

Compare Revisions

Ignore whitespace Rev 51 → Rev 53

/trunk/debian/changelog
1,3 → 1,11
libspf2 (1.2.9-3) unstable; urgency=high
 
* ipv6_buffer_miscalculation.dpatch: Fix an abort() caused by
miscalculating the size of an internal buffer when mail is received
over IPv6. Thanks to Matthias Scheler <tron@netbsd.org>.
 
-- Magnus Holmgren <holmgren@debian.org> Sun, 13 Sep 2009 20:23:22 +0200
 
libspf2 (1.2.9-2) unstable; urgency=low
 
* debian/rules: Correct version.
/trunk/debian/patches/ipv6_buffer_miscalculation.dpatch
0,0 → 1,20
#! /bin/sh /usr/share/dpatch/dpatch-run
## ipv6_buffer_miscalculation.dpatch by Matthias Scheler <tron@netbsd.org>
##
## DP: Fix an abort() caused by miscalculating the size of an internal buffer.
## DP: This can crash applications using "libspf2" (e.g. "milter-greylist")
## DP: in an e-mail gets delivered via SMTP over IPv6 depending on the
## DP: remote machine's IPv6 address.
 
@DPATCH@
--- a/src/libspf2/spf_expand.c 2008-11-03 21:29:00.000000000 +0000
+++ b/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;
/trunk/debian/patches/00list
1,2 → 1,3
01_private_glibc_functions
20_spf_dns_include_std_headers
ipv6_buffer_miscalculation