Skip to content

Encoder generates wrong relative offset with bnd prefix #463

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

Closed
ZehMatt opened this issue Nov 26, 2023 · 0 comments
Closed

Encoder generates wrong relative offset with bnd prefix #463

ZehMatt opened this issue Nov 26, 2023 · 0 comments

Comments

@ZehMatt
Copy link
Contributor

ZehMatt commented Nov 26, 2023

[ERR] Assertion failed: bnd jnb 0x7FF64AEE5472 == bnd jnb 0x7FF64AEE5473

Found this one while adding rewriter validation to my instrumentation tool that uses Zydis, the offset is off by 1 when it contains ZYDIS_ATTRIB_HAS_BND

It seems that ZydisTestEncoderAbsolute doesn't cover this case, adding the prefix makes it fail the tests.

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

1 participant