From: Ulrich Drepper Date: Tue, 23 Nov 1999 05:25:22 +0000 (+0000) Subject: Update. X-Git-Tag: upstream/2.30~26543 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=99296d9dee7857d29ed05882a5cf404f27ae17d4;p=external%2Fglibc.git Update. * locale/loadlocale.c (_nl_load_locale): Allow index of entry in file be equal to file size. --- diff --git a/ChangeLog b/ChangeLog index 2a21dca..40e9dc3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 1999-11-22 Ulrich Drepper + * 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. diff --git a/locale/loadlocale.c b/locale/loadlocale.c index 7b94a42..0bb517c 100644 --- a/locale/loadlocale.c +++ b/locale/loadlocale.c @@ -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);