about summary refs log tree commit diff
path: root/nptl/sem_waitcommon.c
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2022-08-26 21:15:43 +0200
committerFlorian Weimer <fweimer@redhat.com>2022-08-30 16:53:14 +0200
commitda7afc97ad9ddc817686d61f046277166ef42644 (patch)
tree651343f949fc59f6782fc1c389fb1f10e1d0cd06 /nptl/sem_waitcommon.c
parent0631ff369dd3986f7e66dfac03f1233d8cd74045 (diff)
downloadglibc-da7afc97ad9ddc817686d61f046277166ef42644.tar.gz
glibc-da7afc97ad9ddc817686d61f046277166ef42644.tar.xz
glibc-da7afc97ad9ddc817686d61f046277166ef42644.zip
elf: Call __libc_early_init for reused namespaces (bug 29528)
libc_map is never reset to NULL, neither during dlclose nor on a
dlopen call which reuses the namespace structure.  As a result, if a
namespace is reused, its libc is not initialized properly.  The most
visible result is a crash in the <ctype.h> functions.

To prevent similar bugs on namespace reuse from surfacing,
unconditionally initialize the chosen namespace to zero using memset.

(cherry picked from commit d0e357ff45a75553dee3b17ed7d303bfa544f6fe)
Diffstat (limited to 'nptl/sem_waitcommon.c')
0 files changed, 0 insertions, 0 deletions