iqiyi / xHook

🔥 A PLT hook library for Android native ELF.
Other
4.1k stars 762 forks source link

fix xhook calculate so load bias error cause native crash issue #92

Closed lbtrace closed 3 years ago

lbtrace commented 3 years ago

// example, this set of maps: 0000-1000 r--p 000000 00:00 0 libc.so <=== 这里会误判为 Loaded so 用于计算 load bias 导致后续崩溃 ...... 3000-4000 r--p 000000 00:00 0 libc.so <=== 应该使用该 map 计算 load bias 4000-5000 r-xp 003000 00:00 0 libc.so

chongbo2013 commented 3 years ago

👍