error in handling of hex constants.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@78385
138bc75d-0d04-0410-961f-
82ee72b054a4
+2004-02-24 Richard Sandiford <rsandifo@redhat.com>
+
+ * include/bits/locale_facets.tcc (num_get::_M_extract_int): Fix bounds
+ error in handling of hex constants.
+
2004-02-24 Paolo Carlini <pcarlini@suse.de>
* include/bits/locale_facets.tcc (money_put<>::_M_insert):
// At this point, base is determined. If not hex, only allow
// base digits as valid input.
- const size_t __len = __base == 16 ? _S_iend : __base;
+ const size_t __len = __base == 16 ? _S_iend - _S_izero : __base;
// Extract.
string __found_grouping;