ByteHook v1.0.6 #56
caikelun
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Announcements
Bugs fixed
bh_dl_iterate
module on Androd 4.x.In Android 4.x, the system does not provide the
dl_iterate_phdr
function, so we traverse the ELF list by scanning maps. In the process of traversal, since the previous implementation does not hold the linker's mutex global lock, when we read the ELF header information, the ELF may have beendlclose
ed, which will cause a crash. The solution is to hold the linker's mutex global lock while scanning the maps.callee_path_name
when hooking caused unhook to fail.This is caused by a program logic error.
Improve
公告
Bugs 修复
bh_dl_iterate
模块的一个 native 崩溃。在 Android 4.x 中,系统没有提供 dl_iterate_phdr 函数,所以我们通过扫描 maps 的方式来遍历 ELF list。在遍历的过程中,由于之前的实现没有持有 linker 的 mutex 全局锁,所以在我们读取 ELF 头部信息的时候,可能这个 ELF 已经被 dlclose 了,于是会导致崩溃。解决的方式是在扫描 maps 时持有 linker 的 mutex 全局锁。
callee_path_name
导致 unhook 失败的 bug”。这是一个程序逻辑错误导致的。
改进
This discussion was created from the release ByteHook v1.0.6.
Beta Was this translation helpful? Give feedback.
All reactions