From owner-freebsd-bugs Mon Sep 1 09:09:37 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id JAA05483 for bugs-outgoing; Mon, 1 Sep 1997 09:09:37 -0700 (PDT) Received: from spinner.dialix.com.au (spinner.dialix.com.au [192.203.228.67]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id JAA05357; Mon, 1 Sep 1997 09:07:54 -0700 (PDT) Received: from spinner.dialix.com.au (localhost.dialix.com.au [127.0.0.1]) by spinner.dialix.com.au with ESMTP id AAA05692; Tue, 2 Sep 1997 00:04:59 +0800 (WST) (envelope-from peter@spinner.dialix.com.au) Message-Id: <199709011604.AAA05692@spinner.dialix.com.au> X-Mailer: exmh version 2.0zeta 7/24/97 To: Andrew Cagney cc: hoek@hwcn.org, FreeBSD-gnats-submit@FreeBSD.ORG, GNATS Management , freebsd-bugs@hub.freebsd.org Subject: Re: bin/4403: vasprintf (3) corrupts memory In-reply-to: Your message of "Fri, 29 Aug 1997 14:28:34 +1000." Date: Tue, 02 Sep 1997 00:04:59 +0800 From: Peter Wemm Sender: owner-freebsd-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Andrew Cagney wrote: > Excerpts from mail: 28-Aug-97 Re: bin/4403: vasprintf (3).. Tim > Vanderhoek@hwcn.org (1560*) > > > > Probably also in FreeBSD 2.2.2. > > > Yes. But not anything beyond. You could have tried getting a > > new copy of vasprintf.c from -current. The only reason it's in > > 2.2.2 is because people (committers?) don't fix pr's when they're > > submitted. Kudos to those who have recently taken the time to > > close as many pr's as possible. > > FYI, I'm not interested in current, just `stable'. Unfortunatly, it > sounds like stable isn't as stable as one would like :-(. It was backported to 2.2-stable ages ago... It is rev 1.7 in 3.0-current and 1.3.4.1 in 2.2. > I'll think about adding a hack to libiberty, forcing it to use the FSF > version of vasprintf on any freebsd-2.[12].* machine. Be careful.. If it's the version I'm thinking of, I wouldn't be so quick to do this. One version I've seen around scans for % fields in the string to estimate the size and does a malloc and vsprintf. This scares the hell out of me... > Thanks for sorting out the FreeBSD end. You can get the current 2.2 version and it should just drop into both 2.1 .x and 2.2.[12]. > Andrew > Cheers, -Peter