From owner-freebsd-bugs Mon Sep 1 11:24:39 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id LAA13556 for bugs-outgoing; Mon, 1 Sep 1997 11:24:39 -0700 (PDT) Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.19]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id LAA13547 for ; Mon, 1 Sep 1997 11:24:36 -0700 (PDT) Received: (from bde@localhost) by godzilla.zeta.org.au (8.8.5/8.6.9) id EAA10590; Tue, 2 Sep 1997 04:21:54 +1000 Date: Tue, 2 Sep 1997 04:21:54 +1000 From: Bruce Evans Message-Id: <199709011821.EAA10590@godzilla.zeta.org.au> To: freebsd-bugs@hub.freebsd.org, peter@spinner.dialix.com.au Subject: Re: bin/4403: vasprintf (3) corrupts memory Sender: owner-freebsd-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > > 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... That version (the one in gdb-4.16) dumps core for %% in the string. Bruce