Elektrine lite

← Feed

@codonell@fosstodon.org

Post #3038155

2026-04-27 14:48 UTC

If you use RTLD_DEEPBIND you can create a nested lookup scope, and in that scope you can define your own allocator and bind locally to it... but if you leak pointers from that allocator to another scope, say via function return, it results in undefined behaviour when you try to free the pointer in a scope where it was not allocated. glibc lets you do this because it is the semantics of RTLD_DEEPBIND. This is a non-modular feature and because of these semantics it is incompatible with ASAN.

Replies (0)

No replies.