Problems with LD_PRELOAD and calloc() interposition for certain executables

前端 未结 4 1147
情歌与酒
情歌与酒 2021-02-09 15:49

Relating to a previous question of mine

I\'ve successfully interposed malloc, but calloc seems to be more problematic.

That is with ce

4条回答
  •  不要未来只要你来
    2021-02-09 16:16

    Using dlsym based hooking can result in crashes, as dlsym calls back into the memory allocator. Instead use malloc hooks, as I suggested in your prior question; these can be installed without actually invoking dlsym at all.

提交回复
热议问题