diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2015-08-05 08:15:51 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2015-08-05 08:15:51 -0700 |
commit | 782723d6d8c7b599c4fdbbd359a7bc57b25044ad (patch) | |
tree | ea5fba560d6a71c2611cd2ab87361f63d703484b /locale/duplocale.c | |
parent | cf36e5034fa8ed5d44036bce09a55a7f00d19252 (diff) | |
download | glibc-782723d6d8c7b599c4fdbbd359a7bc57b25044ad.tar glibc-782723d6d8c7b599c4fdbbd359a7bc57b25044ad.tar.gz glibc-782723d6d8c7b599c4fdbbd359a7bc57b25044ad.tar.bz2 glibc-782723d6d8c7b599c4fdbbd359a7bc57b25044ad.zip |
Also check dead->data[category] != NULL
_nl_load_locale_from_archive (int category, const char **namep)
has
for (cnt = 0; cnt < __LC_LAST; ++cnt)
if (cnt != LC_ALL)
{
lia->data[cnt] = _nl_intern_locale_data (cnt,
results[cnt].addr,
results[cnt].len);
if (__glibc_likely (lia->data[cnt] != NULL))
{
...
}
}
lia->data[cnt] can be NULL, which happens to en_US.UTF-8 with
LC_COLLATE. But this won't happen if glibc is configured with
--enable-hardcoded-path-in-tests. We should also check
dead->data[category] != NULL.
* locale/loadarchive.c (_nl_archive_subfreeres): Also check
dead->data[category] != NULL.
Diffstat (limited to 'locale/duplocale.c')
0 files changed, 0 insertions, 0 deletions