This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/12394] thousands grouping bug when rounding requires an extra leading digit
- From: "bruno at clisp dot org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: Wed, 12 Jan 2011 22:16:54 +0000
- Subject: [Bug libc/12394] thousands grouping bug when rounding requires an extra leading digit
- Auto-submitted: auto-generated
- References: <bug-12394-131@http.sourceware.org/bugzilla/>
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 on the CC list for the bug.