readlink -f still segfaults

Rob Landley rob at landley.net
Sat May 6 21:05:23 PDT 2006


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?

Rob
-- 
Never bet against the cheap plastic solution.


More information about the busybox mailing list