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

CreateCodePatcher函数中计算最大地址偏移值的错误 #29

Open
yaoyechn opened this issue Jun 12, 2024 · 1 comment
Open

CreateCodePatcher函数中计算最大地址偏移值的错误 #29

yaoyechn opened this issue Jun 12, 2024 · 1 comment

Comments

@yaoyechn
Copy link

image

long addrOffset = Math.Abs(_targetPtr.ToInt64() - _proxyPtr.ToInt64());

这里的_proxyPtr似乎应该改为_replacementPtr

image

@1605461536
Copy link

System.ArgumentException: address offset of target and replace must less than (1 << 26) - 1) * 4
我抛了这个异常 和您说的这个修改会有关系吗

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

No branches or pull requests

2 participants