]> git.ipfire.org Git - thirdparty/glibc.git/commit
malloc: Fix malloc init order
authorWilco Dijkstra <wilco.dijkstra@arm.com>
Tue, 27 May 2025 13:32:45 +0000 (13:32 +0000)
committerWilco Dijkstra <wilco.dijkstra@arm.com>
Tue, 27 May 2025 15:25:30 +0000 (15:25 +0000)
commit919bf1489abe634aefbcf3532617e7c5987c56ab
treeff67623f2412fc58a1854a8a619f4010adb7c321
parenta289cf711e0797ed8fe23a1222904fbb35560356
malloc: Fix malloc init order

__ptmalloc_init was called too early in __libc_early_init: it uses
__libc_initial which is not set yet.  Fix this by moving initialization
to the end of __libc_early_init.

Reviewed-by: Florian Weimer <fweimer@redhat.com>
elf/libc_early_init.c