pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mail/procmail Pass the size to be reallocated to reall...
details: https://anonhg.NetBSD.org/pkgsrc/rev/837745cd684a
branches: trunk
changeset: 466079:837745cd684a
user: simonb <simonb%pkgsrc.org@localhost>
date: Sun Jan 11 06:55:00 2004 +0000
description:
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:
mail/procmail/distinfo | 3 ++-
mail/procmail/patches/patch-af | 13 +++++++++++++
2 files changed, 15 insertions(+), 1 deletions(-)
diffs (31 lines):
diff -r d8fa1f2585d4 -r 837745cd684a mail/procmail/distinfo
--- a/mail/procmail/distinfo Sun Jan 11 06:50:58 2004 +0000
+++ b/mail/procmail/distinfo Sun Jan 11 06:55:00 2004 +0000
@@ -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-ac) = fe2350e704546c2262d546bb615175dd0591ba8b
SHA1 (patch-ad) = 569d357c6afb9d7644c8094878aec08d22ae609d
SHA1 (patch-ae) = 91a3f83d41ba84e218a14c8bfc262fdbb1bc252c
+SHA1 (patch-af) = 889f937f50561308c644d5a4bd836eccabbb2938
diff -r d8fa1f2585d4 -r 837745cd684a mail/procmail/patches/patch-af
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/procmail/patches/patch-af Sun Jan 11 06:55:00 2004 +0000
@@ -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);
Home |
Main Index |
Thread Index |
Old Index