This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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  <pcarlini@suse.de>

        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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]