[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#421555: coreutils: printf "%-1.25000000s" segfaults



On Mon, Apr 30, 2007 at 01:17:57PM +0200, Jim Meyering wrote:
> Pierre Habouzit <madcoder@debian.org> wrote:
> 
> > Package: coreutils
> > Version: 5.97-5.3
> > Severity: important
> >
> > $ /usr/bin/printf '%-1.25000000s\n' 'Hello'
> >
> >   Is a quite good testcase :)
> >
> >   FWIW libc printf seems to work properly. Further poking shows that it
> > may be locale-dependant as the following works:
> 
> Thanks for the report!
> To reproduce it, I did this:
> 
>     $ LC_ALL=fr_FR.utf8 ./printf %1.2500000000s x
>     zsh: bus error  LC_CTYPE=fr_FR.utf8 ./printf %1.2500000000s x
>     [Exit 135 (BUS)]
> 
> Actually that's due to a bug in glibc that affects even the very
> latest in CVS.  I've dug a little and reported it upstream:
> 
>     http://bugzilla.redhat.com/238406

  well, libc bugzilla is rather sourceware.com/bugzilla/ and the bug is
not with that has some guards, but in the macro where you can find a big
fat wchar_t ignore[spec] :)

-- 
·O·  Pierre Habouzit
··O                                                madcoder@debian.org
OOO                                                http://www.madism.org

Attachment: pgpmODtGBMZPI.pgp
Description: PGP signature


Reply to: