locale_facets.tcc (num_get::_M_extract_int): Fix bounds error in handling of hex constants.

* include/bits/locale_facets.tcc (num_get::_M_extract_int): Fix bounds
	error in handling of hex constants.

From-SVN: r78385
This commit is contained in:
Richard Sandiford 2004-02-24 20:49:40 +00:00 committed by Richard Sandiford
parent abe57d38fc
commit 212063a844
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
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):

View File

@ -391,7 +391,7 @@ namespace std
// 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;