Skip to content

Fixed an issue where mocking under incremental linking would corrupt the function jump table.#56

Open
Peter-Zheng-Sp wants to merge 3 commits into
ez8-co:masterfrom
Peter-Zheng-Sp:add_jmp_chain_tracing
Open

Fixed an issue where mocking under incremental linking would corrupt the function jump table.#56
Peter-Zheng-Sp wants to merge 3 commits into
ez8-co:masterfrom
Peter-Zheng-Sp:add_jmp_chain_tracing

Conversation

@Peter-Zheng-Sp

Copy link
Copy Markdown
Contributor

描述

此PR修复了在增量链接(Incremental Linking)场景下,inline hook引擎无法正确处理跳转指令导致mock破坏增量链接结构的问题。当启用增量链接时,编译器会生成跳转到实际函数代码的存根(stub),导致后续函数的跳转表被破坏,最终引发调用崩溃。

如下图:微信图片_20260124211524

解决方案

引入ApiHookTargetResolver类来追踪跳转链,直到找到非跳转的实际函数代码

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants