mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-26 12:41:05 +00:00
fada901819
Calling free directly may end up freeing a pointer allocated by the dynamic loader using malloc from libc.so in the base namespace using the allocator from libc.so in a secondary namespace, which results in crashes. This commit redirects the free call through GLRO and the dynamic linker, to reach the correct namespace. It also cleans up the dlerror handling along the way, so that pthread_setspecific is no longer needed (which avoids triggering bug 24774).
23 lines
282 B
Plaintext
23 lines
282 B
Plaintext
libc {
|
|
GLIBC_PRIVATE {
|
|
__libc_dlerror_result;
|
|
}
|
|
}
|
|
libdl {
|
|
GLIBC_2.0 {
|
|
dladdr; dlclose; dlerror; dlopen; dlsym;
|
|
}
|
|
GLIBC_2.1 {
|
|
dlopen; dlvsym;
|
|
}
|
|
GLIBC_2.3.3 {
|
|
dladdr1; dlinfo;
|
|
}
|
|
GLIBC_2.3.4 {
|
|
dlmopen;
|
|
}
|
|
GLIBC_PRIVATE {
|
|
_dlfcn_hook;
|
|
}
|
|
}
|