Is it possible to wrap malloc / free functions in Android NDK?
I have checked all the solutions from create-a-wrapper-function-for-malloc-and-free-in-c but none of them worked.
In the top-voted answer there are 4 approaches proposed:
- Usage of hooks -> hooks are not available in bionic
- Usage of dlsym -> crashes with 'SEGV_MAPERR'
- not applicable for Android
- not applicable for Android