Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug fix. #10

Closed
wants to merge 2 commits into from
Closed

Bug fix. #10

wants to merge 2 commits into from

Conversation

764994703
Copy link

指令恢复时对如0x54ff6b28 b.hi -0x129d 指令做重定向的offset的计算是错误的。
是由于offset imm19是一个signed值,但代码中__fix_cond_comp_test_branch计算absolute_addr将其视为unsigned导致的。

@764994703
Copy link
Author

其他几处signed_extend的实现也看起来不太对,可能需要都改成用我这个实现?

@Rprop
Copy link
Owner

Rprop commented Jul 11, 2022

感谢, 那里确实没考虑sign-extended的情况, 不过有效位未必是21, 还可能是16, 简单修了:
https://github.com/Rprop/And64InlineHook/blob/master/And64InlineHook.cpp#L223

其它地方的好像没问题?未验证

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.

None yet

2 participants