[Bug libc/12394] thousands grouping bug when rounding requires an extra leading digit
bruno at clisp dot org
sourceware-bugzilla@sourceware.org
Wed Jan 12 22:19:00 GMT 2011
http://sourceware.org/bugzilla/show_bug.cgi?id=12394
Bruno Haible <bruno at clisp dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bruno at clisp dot org
Component|localedata |libc
AssignedTo|libc-locales at sources dot |drepper.fsp at gmail dot
|redhat.com |com
--- Comment #3 from Bruno Haible <bruno at clisp dot org> 2011-01-12 22:16:47 UTC ---
The bug affects not only the %f directive, but also the %g directive,
and can lead to a segmentation fault in the latter case.
Find attached the test case. How to reproduce:
$ gcc -Wall bug12394.c
$ ./a.out
Segmentation fault (core dumped)
$ gdb a.out core
(gdb) where
#0 0x00007f70364aeaa4 in __printf_fp () from /lib64/libc.so.6
#1 0x00007f70364a9b4d in vfprintf () from /lib64/libc.so.6
#2 0x00007f70364cbee9 in vsprintf () from /lib64/libc.so.6
#3 0x00007f70364b2118 in sprintf () from /lib64/libc.so.6
#4 0x0000000000400819 in main ()
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the Libc-locales
mailing list