[Bug libstdc++/23953] using stringstreams causes crashes with some locales
--- Comment #10 from pcarlini at suse dot de 2006-01-16 13:55 --- *** Bug 25807 has been marked as a duplicate of this bug. *** -- pcarlini at suse dot de changed: What|Removed |Added CC||wolfgang dot glas at ev-i ||dot at http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23953
[Bug libstdc++/23953] using stringstreams causes crashes with some locales
--- Comment #11 from pinskia at gcc dot gnu dot org 2006-02-13 17:27 --- *** Bug 26263 has been marked as a duplicate of this bug. *** -- pinskia at gcc dot gnu dot org changed: What|Removed |Added CC||o dot kullmann at swansea ||dot ac dot uk http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23953
[Bug libstdc++/23953] using stringstreams causes crashes with some locales
--- Additional Comments From plors at hakvoort dot be 2005-09-18 16:25 --- Created an attachment (id=9770) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=9770&action=view) test.cc -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23953
[Bug libstdc++/23953] using stringstreams causes crashes with some locales
--- Additional Comments From plors at hakvoort dot be 2005-09-18 16:45 --- Created an attachment (id=9771) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=9771&action=view) test.ii -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23953
[Bug libstdc++/23953] using stringstreams causes crashes with some locales
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-09-18 17:02 --- The stack is overflowed because it is an infinite loop. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23953
[Bug libstdc++/23953] using stringstreams causes crashes with some locales
--- Additional Comments From pcarlini at suse dot de 2005-09-18 17:31 --- It looks like we are not considering some special corner cases for the localedata in numeric_members.cc: as long as *nl_langinfo_l(THOUSANDS_SEP) != '\0' we simply process the nl_langinfo_l(GROUPING) string as-is. We should be more careful... -- What|Removed |Added Status|UNCONFIRMED |NEW Ever Confirmed||1 Last reconfirmed|-00-00 00:00:00 |2005-09-18 17:31:29 date|| http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23953
[Bug libstdc++/23953] using stringstreams causes crashes with some locales
--- Additional Comments From pcarlini at suse dot de 2005-09-18 17:42 --- Probably the best fix is in __add_grouping: we have to consider the possibility than an integer specifying the group size is -1, which means no more groupings (section 7. Locale of IEEE Std 1003.1, 2004 Edition) -- What|Removed |Added AssignedTo|unassigned at gcc dot gnu |pcarlini at suse dot de |dot org | Status|NEW |ASSIGNED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23953
[Bug libstdc++/23953] using stringstreams causes crashes with some locales
--- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-09-30 08:41 --- Subject: Bug 23953 CVSROOT:/cvs/gcc Module name:gcc Changes by: [EMAIL PROTECTED] 2005-09-30 08:39:57 Modified files: libstdc++-v3 : ChangeLog libstdc++-v3/include/bits: locale_facets.tcc Added files: libstdc++-v3/testsuite/22_locale/num_get/get/char: 23953.cc libstdc++-v3/testsuite/22_locale/num_get/get/wchar_t: 23953.cc libstdc++-v3/testsuite/22_locale/num_put/put/char: 23953.cc libstdc++-v3/testsuite/22_locale/num_put/put/wchar_t: 23953.cc Log message: 2005-09-30 Paolo Carlini <[EMAIL PROTECTED]> PR libstdc++/23953 * include/bits/locale_facets.tcc (__numpunct_cache<>::_M_cache, __moneypunct_cache<>::_M_cache): Check that grouping()[0] > 0. (__verify_grouping): Do the last check only if __grouping[__min] > 0. (__add_grouping<>): End recursion if *__gbeg <= 0. * testsuite/22_locale/num_get/get/char/23953.cc: New. * testsuite/22_locale/num_get/get/wchar_t/23953.cc: Likewise. * testsuite/22_locale/num_put/put/char/23953.cc: Likewise. * testsuite/22_locale/num_put/put/wchar_t/23953.cc: Likewise. Patches: http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/ChangeLog.diff?cvsroot=gcc&r1=1.3115&r2=1.3116 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/include/bits/locale_facets.tcc.diff?cvsroot=gcc&r1=1.218&r2=1.219 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/testsuite/22_locale/num_get/get/char/23953.cc.diff?cvsroot=gcc&r1=NONE&r2=1.1 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/testsuite/22_locale/num_get/get/wchar_t/23953.cc.diff?cvsroot=gcc&r1=NONE&r2=1.1 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/testsuite/22_locale/num_put/put/char/23953.cc.diff?cvsroot=gcc&r1=NONE&r2=1.1 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/testsuite/22_locale/num_put/put/wchar_t/23953.cc.diff?cvsroot=gcc&r1=NONE&r2=1.1 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23953
[Bug libstdc++/23953] using stringstreams causes crashes with some locales
-- What|Removed |Added Target Milestone|--- |4.0.3 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23953
[Bug libstdc++/23953] using stringstreams causes crashes with some locales
--- Comment #7 from paolo at gcc dot gnu dot org 2005-11-06 01:12 --- Subject: Bug 23953 Author: paolo Date: Sun Nov 6 01:12:23 2005 New Revision: 106553 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=106553 Log: 2005-11-05 Paolo Carlini <[EMAIL PROTECTED]> PR libstdc++/23953 * include/bits/locale_facets.tcc (__numpunct_cache<>::_M_cache, __moneypunct_cache<>::_M_cache): Check that grouping()[0] > 0. (__verify_grouping): Do the last check only if __grouping[__min] > 0. (__add_grouping<>): End recursion if *__gbeg <= 0. * testsuite/22_locale/num_get/get/char/23953.cc: New. * testsuite/22_locale/num_get/get/wchar_t/23953.cc: Likewise. * testsuite/22_locale/num_put/put/char/23953.cc: Likewise. * testsuite/22_locale/num_put/put/wchar_t/23953.cc: Likewise. Added: branches/gcc-4_0-branch/libstdc++-v3/testsuite/22_locale/num_get/get/char/23953.cc branches/gcc-4_0-branch/libstdc++-v3/testsuite/22_locale/num_get/get/wchar_t/23953.cc branches/gcc-4_0-branch/libstdc++-v3/testsuite/22_locale/num_put/put/char/23953.cc branches/gcc-4_0-branch/libstdc++-v3/testsuite/22_locale/num_put/put/wchar_t/23953.cc Modified: branches/gcc-4_0-branch/libstdc++-v3/ChangeLog branches/gcc-4_0-branch/libstdc++-v3/include/bits/locale_facets.tcc -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23953
[Bug libstdc++/23953] using stringstreams causes crashes with some locales
--- Comment #8 from pcarlini at suse dot de 2005-11-06 01:13 --- Fixed for 4.0.3. -- pcarlini at suse dot de changed: What|Removed |Added AssignedTo|pcarlini at suse dot de |unassigned at gcc dot gnu ||dot org Status|ASSIGNED|NEW http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23953
[Bug libstdc++/23953] using stringstreams causes crashes with some locales
--- Comment #9 from pcarlini at suse dot de 2005-11-06 01:13 --- Oops... -- pcarlini at suse dot de changed: What|Removed |Added Status|NEW |RESOLVED Resolution||FIXED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23953