[Bug libstdc++/21209] signed integer overflow in num_get::_M_extract_int

2005-05-03 Thread pcarlini at suse dot de

--- Additional Comments From pcarlini at suse dot de  2005-05-03 12:03 
---
Fixed for 4.0.1.

-- 
   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED
   Target Milestone|--- |4.0.1


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21209


[Bug libstdc++/21209] signed integer overflow in num_get::_M_extract_int

2005-05-03 Thread cvs-commit at gcc dot gnu dot org

--- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-05-03 
12:12 ---
Subject: Bug 21209

CVSROOT:/cvs/gcc
Module name:gcc
Branch: gcc-4_0-branch
Changes by: [EMAIL PROTECTED]   2005-05-03 12:02:14

Modified files:
libstdc++-v3   : ChangeLog 
libstdc++-v3/include/bits: locale_facets.tcc 
Added files:
libstdc++-v3/testsuite/22_locale/num_get/get/char: 16.cc 
libstdc++-v3/testsuite/22_locale/num_get/get/wchar_t: 16.cc 

Log message:
2005-05-03  Paolo Carlini  [EMAIL PROTECTED]

PR libstdc++/21209
* include/bits/locale_facets.tcc (_M_extract_int): Avoid signed
integer overflow, always use a suited unsigned type in the main
parsing loop.
(struct __to_unsigned_type): New.
* testsuite/22_locale/num_get/get/char/16.cc: New.
* testsuite/22_locale/num_get/get/wchar_t/16.cc: Likewise.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/ChangeLog.diff?cvsroot=gcconly_with_tag=gcc-4_0-branchr1=1.2917.2.37r2=1.2917.2.38
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/include/bits/locale_facets.tcc.diff?cvsroot=gcconly_with_tag=gcc-4_0-branchr1=1.211.12.2r2=1.211.12.3
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/testsuite/22_locale/num_get/get/char/16.cc.diff?cvsroot=gcconly_with_tag=gcc-4_0-branchr1=NONEr2=1.1.4.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/testsuite/22_locale/num_get/get/wchar_t/16.cc.diff?cvsroot=gcconly_with_tag=gcc-4_0-branchr1=NONEr2=1.1.4.1



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21209


[Bug libstdc++/21209] signed integer overflow in num_get::_M_extract_int

2005-04-26 Thread cvs-commit at gcc dot gnu dot org

--- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-04-26 
09:31 ---
Subject: Bug 21209

CVSROOT:/cvs/gcc
Module name:gcc
Changes by: [EMAIL PROTECTED]   2005-04-26 09:31:07

Modified files:
libstdc++-v3   : ChangeLog 
libstdc++-v3/include/bits: locale_facets.tcc 
Added files:
libstdc++-v3/testsuite/22_locale/num_get/get/char: 16.cc 
libstdc++-v3/testsuite/22_locale/num_get/get/wchar_t: 16.cc 

Log message:
2005-04-26  Paolo Carlini  [EMAIL PROTECTED]

PR libstdc++/21209
* include/bits/locale_facets.tcc (_M_extract_int): Avoid signed
integer overflow, always use a suited unsigned type in the main
parsing loop.
(struct __to_unsigned_type): New.
* testsuite/22_locale/num_get/get/char/16.cc: New.
* testsuite/22_locale/num_get/get/wchar_t/16.cc: Likewise.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/ChangeLog.diff?cvsroot=gccr1=1.2978r2=1.2979
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/include/bits/locale_facets.tcc.diff?cvsroot=gccr1=1.213r2=1.214
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/testsuite/22_locale/num_get/get/char/16.cc.diff?cvsroot=gccr1=NONEr2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/testsuite/22_locale/num_get/get/wchar_t/16.cc.diff?cvsroot=gccr1=NONEr2=1.1



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21209


[Bug libstdc++/21209] signed integer overflow in num_get::_M_extract_int

2005-04-25 Thread pcarlini at suse dot de


-- 
   What|Removed |Added

 Status|UNCONFIRMED |NEW
 Ever Confirmed||1
   Last reconfirmed|-00-00 00:00:00 |2005-04-25 09:47:36
   date||


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21209