[7078] in bugtraq
Re: QPOPPER problem....
daemon@ATHENA.MIT.EDU (Marco S Hyman)
Sun Jun 28 05:30:54 1998
Date: Sat, 27 Jun 1998 15:40:11 -0700
Reply-To: Marco S Hyman <marc@SNAFU.ORG>
From: Marco S Hyman <marc@SNAFU.ORG>
X-To: "Bruno Lopes F. Cabral" <bruno@OPENLINE.COM.BR>
To: BUGTRAQ@NETSPACE.ORG
In-Reply-To: Your message of "Sat, 27 Jun 1998 15:47:39 -0300."
<199806271847.PAA01550@zeus.openline.com.br>
"Bruno Lopes F. Cabral" writes:
> #ifdef HAVE_VPRINTF
> - vsprintf(mp,format,ap);
> + vsnprintf(mp,sizeof(message) - strlen(mp) -1,format,ap);
I don't think so. Check out the code... mp is pointing at the terminating
null from the previous sprintf. In effect you've coded
sizeof( message ) - -1. Not what you wanted at all.
// marc