Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | dlfcn: dlerror needs to call free from the base namespace [BZ #24773] | Florian Weimer | 2021-04-21 | 1 | -0/+92 |
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). |