mirror of
git://sourceware.org/git/glibc.git
synced 2024-11-27 03:41:23 +08:00
Update.
* locale/loadlocale.c (_nl_load_locale): Allow index of entry in file be equal to file size.
This commit is contained in:
parent
62818cfd92
commit
99296d9dee
@ -1,5 +1,8 @@
|
||||
1999-11-22 Ulrich Drepper <drepper@cygnus.com>
|
||||
|
||||
* locale/loadlocale.c (_nl_load_locale): Allow index of entry in
|
||||
file be equal to file size.
|
||||
|
||||
* stdlib/longlong.h: Add count_trailing_zeros back.
|
||||
|
||||
* stdlib/longlong.h: Update from latest egcs version.
|
||||
|
@ -189,7 +189,7 @@ _nl_load_locale (struct loaded_l10nfile *file, int category)
|
||||
for (cnt = 0; cnt < newdata->nstrings; ++cnt)
|
||||
{
|
||||
off_t idx = filedata->strindex[cnt];
|
||||
if (idx >= newdata->filesize)
|
||||
if (idx > newdata->filesize)
|
||||
{
|
||||
free (newdata);
|
||||
__set_errno (EINVAL);
|
||||
|
Loading…
Reference in New Issue
Block a user