diff options
author | simonb <simonb@pkgsrc.org> | 2004-01-11 06:55:00 +0000 |
---|---|---|
committer | simonb <simonb@pkgsrc.org> | 2004-01-11 06:55:00 +0000 |
commit | f0574e056cec33de2f9ff6857f21571da94057ec (patch) | |
tree | a855ca72618c826ea737b700838bba9cdd6f9110 /mail/procmail | |
parent | 7e0336f64612ce57b3bf335a7d9e7e62964e5133 (diff) | |
download | pkgsrc-f0574e056cec33de2f9ff6857f21571da94057ec.tar.gz |
Pass the size to be reallocated to realloc(), not the address of the
size(!). Fixes "Out of memory as I tried to allocate N bytes" messages
that I've been seeing.
Diffstat (limited to 'mail/procmail')
-rw-r--r-- | mail/procmail/distinfo | 3 | ||||
-rw-r--r-- | mail/procmail/patches/patch-af | 13 |
2 files changed, 15 insertions, 1 deletions
diff --git a/mail/procmail/distinfo b/mail/procmail/distinfo index f32eb8e3a38..e6d9613b129 100644 --- a/mail/procmail/distinfo +++ b/mail/procmail/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.7 2003/01/20 22:55:43 jschauma Exp $ +$NetBSD: distinfo,v 1.8 2004/01/11 06:55:00 simonb Exp $ SHA1 (procmail-3.22.tar.gz) = cd4e44c15559816453fd60349e5a32289f6f2965 Size (procmail-3.22.tar.gz) = 226817 bytes @@ -7,3 +7,4 @@ SHA1 (patch-ab) = 5233a6033198dc2baec135a6fba987e7e2b89ff2 SHA1 (patch-ac) = fe2350e704546c2262d546bb615175dd0591ba8b SHA1 (patch-ad) = 569d357c6afb9d7644c8094878aec08d22ae609d SHA1 (patch-ae) = 91a3f83d41ba84e218a14c8bfc262fdbb1bc252c +SHA1 (patch-af) = 889f937f50561308c644d5a4bd836eccabbb2938 diff --git a/mail/procmail/patches/patch-af b/mail/procmail/patches/patch-af new file mode 100644 index 00000000000..c273905b3d1 --- /dev/null +++ b/mail/procmail/patches/patch-af @@ -0,0 +1,13 @@ +$NetBSD: patch-af,v 1.1 2004/01/11 06:55:00 simonb Exp $ + +--- src/pipes.c.orig Tue Sep 11 14:58:44 2001 ++++ src/pipes.c +@@ -194,7 +194,7 @@ perr: progerr(line,excode,pwait==4 + makeblock(&temp,Stdfilled); + tmemmove(temp.p,Stdout,Stdfilled); + readdyn(&temp,&Stdfilled,Stdfilled+backlen+1); +- Stdout=realloc(Stdout,&Stdfilled+1); ++ Stdout=realloc(Stdout,Stdfilled+1); + tmemmove(Stdout,temp.p,Stdfilled+1); + freeblock(&temp); + retStdout(Stdout,pwait&&pipw,!backblock); |