readlink -f still segfaults

Rich Felker dalias at aerifal.cx
Sun May 7 05:58:00 UTC 2006


On Sun, May 07, 2006 at 12:05:23AM -0400, Rob Landley wrote:
> On Friday 05 May 2006 8:38 pm, Rich Felker wrote:
> > On Fri, May 05, 2006 at 05:02:35PM -0400, Rob Landley wrote:
> > > On Friday 05 May 2006 6:54 am, Natanael Copa wrote:
> > > > It looks to me that it always needs to be free'd.
> > > > The previous way realpath(..., NULL) gnu extension allocates for you
> > > > when buffer is NULL.
> > >
> > > Which is smaller.  You're saying that uClibc 0.9.28 doesn't do this,
> > > though?
> > >
> > > Hmmm...  Sounds like we're getting into platform.c territory.  The
> > > bb_strlen() thing really should be in libbb/platform.c rather than
> > > xfuncs.c because substituting our own strlen() function to force
> > > uninlining is a workaround for a broken compiler that can't be told _NOT_
> > > to inline something that's used over 500 times in the code.
> >
> > Can't be told not to? Did you ever rtfm -fno-builtin? :)
> 
> Did you miss the part where I said I tested it back under gcc 3.2, and it 
> didn't work?

Apparently so. What happens?

Rich




More information about the busybox mailing list