diff options
| author | Florian Weimer <fweimer@redhat.com> | 2022-08-26 21:15:43 +0200 |
|---|---|---|
| committer | Florian Weimer <fweimer@redhat.com> | 2022-08-26 21:15:43 +0200 |
| commit | d0e357ff45a75553dee3b17ed7d303bfa544f6fe (patch) | |
| tree | 1b3480f556a5a7d109c3cc5775ed951420156f00 /malloc/alloc_buffer_alloc_array.c | |
| parent | 06d4381dd81eaab16b538017adc5854033f44b6d (diff) | |
| download | glibc-d0e357ff45a75553dee3b17ed7d303bfa544f6fe.tar.xz glibc-d0e357ff45a75553dee3b17ed7d303bfa544f6fe.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.
Diffstat (limited to 'malloc/alloc_buffer_alloc_array.c')
0 files changed, 0 insertions, 0 deletions
