Re: Possible bug in pipes.c

Santiago Vila <[email protected]> Fri, 23 Nov 2007 10:54:30 +0100 (CET)
Newsgroups gmane.mail.procmail.devel
Message-ID <[email protected]>
On Thu, 22 Nov 2007, Glenn Willen wrote:

> diff -rc procmail-3.22/src/pipes.c procmail-3.22-fixed/src/pipes.c
> *** procmail-3.22/src/pipes.c   Tue Sep 11 00:58:44 2001
> --- procmail-3.22-fixed/src/pipes.c     Wed Nov 21 23:53:39 2007
> ***************
> *** 194,200 ****
>        makeblock(&temp,Stdfilled);
>        tmemmove(temp.p,Stdout,Stdfilled);
>        readdyn(&temp,&Stdfilled,Stdfilled+backlen+1);
> !      Stdout=realloc(Stdout,&Stdfilled+1);
>        tmemmove(Stdout,temp.p,Stdfilled+1);
>        freeblock(&temp);
>        retStdout(Stdout,pwait&&pipw,!backblock);
> --- 194,200 ----
>        makeblock(&temp,Stdfilled);
>        tmemmove(temp.p,Stdout,Stdfilled);
>        readdyn(&temp,&Stdfilled,Stdfilled+backlen+1);
> !      Stdout=realloc(Stdout,Stdfilled+1);
>        tmemmove(Stdout,temp.p,Stdfilled+1);
>        freeblock(&temp);
>        retStdout(Stdout,pwait&&pipw,!backblock);

This was reported as a Debian bug, see http://bugs.debian.org/171514
and it was fixed in the Debian version of procmail in 2002.

As you, unfortunately, I have not heard from Philip Guenther in a long time.
Philip, are you there?