Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 Sep 1997 04:21:54 +1000
From:      Bruce Evans <bde@zeta.org.au>
To:        freebsd-bugs@hub.freebsd.org, peter@spinner.dialix.com.au
Subject:   Re: bin/4403: vasprintf (3) corrupts memory
Message-ID:  <199709011821.EAA10590@godzilla.zeta.org.au>

next in thread | raw e-mail | index | archive | help
> > 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



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