Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 Aug 2004 21:35:57 +0400 (MSD)
From:      Maxim Konovalov <maxim@macomnet.ru>
To:        Tim Kientzle <kientzle@freebsd.org>
Cc:        Sean McNeil <sean@mcneil.com>
Subject:   Re: bsdtar core dumps
Message-ID:  <20040821213426.A36214@mp2.macomnet.net>
In-Reply-To: <4127841D.6050104@freebsd.org>
References:  <1092777586.92327.9.camel@server.mcneil.com> <20040817213813.GE3827@gothmog.gr><4127841D.6050104@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 21 Aug 2004, 10:19-0700, Tim Kientzle wrote:

[...]
> The code you've pointed to above concerns
> me because of the part about:
> if (n == 0) {
> ...
> n = 1;
>     }
> That ain't right:  If I told vsnprintf the buffer
> size was zero, it should treat it as such.  If I
> meant "one", I would have said "one."

That code was committed in rev. 1.21 vsnprintf.c, a workaround for a
memory leak, bin/36175.

-- 
Maxim Konovalov



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040821213426.A36214>