https://github.com/delcypher requested changes to this pull request. Glad you figured out the problem. I think the implementation of `malloc_size` interceptor needs to be a little different to avoid a potential bug. https://github.com/llvm/llvm-project/pull/122133