Re: PATCH: mdecode2047() buffer overrun

From: Daniel Stenberg <>
Date: Sun, 9 Aug 1998 10:12:07 +0200 (MET DST)
Message-ID: <>

On Fri, 7 Aug 1998, David D. Kilzer wrote:

> Whilst hacking a user-requested feature into Hypermail (they want to set
> a second "label" for each monthly archive that can be included as a
> "percent-character" item), I found a buffer overrun bug in mdecode2047()
> that results in a seg fault or bus error. This only happens when a
> header line is more than MAXLINE-1 characters and the message is a
> MIME-encoded message ("Mime-Version: 1.0").
> This may have already been fixed by Kevin, but I had to develop a patch
> to get it working in the meantime. It's included below, along with a
> "test" message if you're interested in regression testing.

Yes, I found that error and it has been solved for the upcoming b3. My solution was very similar to yours.

             Daniel Stenberg -
   ech`echo xiun|tr nu oc|sed 'sx\([sx]\)\([xoi]\)xo un\2\1 is xg'`ol
Received on Sun 09 Aug 1998 10:15:45 AM GMT

This archive was generated by hypermail 2.2.0 : Thu 22 Feb 2007 07:33:49 PM GMT GMT