Comments (5)
Yeah. I think this function is broken for any register that isn't encodable with a (register-class, register-id)
tuple, so any register having a -1
in the first numeric column here: https://github.com/zyantific/zydis/blob/master/src/Generated/RegisterLookup.inc. These are all registers that can only be read and written to via specialized instructions.
@flobernd I think we should probably special case at least EFLAGS and EIP in ZydisRegisterGetLargestEnclosing
: the whole "needs to be (class, ID)
encodable requirement is not at all obvious from the function signature.
from zydis-rs.
We need the updated zydis-c submodule to fix this
from zydis-rs.
Not a fan of bindings where the corresponding library is pinned to some random commit. Will need to do a 4.X release of Zydis first. It's a bit more work than I'd like because there were some (minor) breaking changes on master
& I'll need to start a branch that undoes those while keeping all the fixes.
from zydis-rs.
Following the corresponding Zydis release on Sunday, I just published v4.1.0-beta.1
that includes this fix.
from zydis-rs.
Update:
This is not a rust bindings bug, it's a Zydis's bug itself
from zydis-rs.
Related Issues (17)
- Do a new release HOT 2
- Update to v2-beta HOT 2
- Version 0.0.4 not on crates.io HOT 3
- zydis-rs fails to build on windows from github HOT 2
- InstructionAttribute IS_PRIVILIGED is misspelled ("privileged") HOT 1
- BranchType serialization feature misspelled: Deserilaize HOT 1
- type mismatch for ZydisMnemonic and ZydisMnemonics HOT 4
- Tracking: Webassembly support HOT 11
- crash during instruction serialization HOT 4
- lea, "(empty)" second operand "action" HOT 3
- mismatched types on arm HOT 2
- Userdata not correctly passed to formatted callback when LTO enabled HOT 5
- Update to latest Zydis version HOT 17
- Enhance AccessedFlags struct HOT 6
- InstructionAttributes not applied to FullInstruction HOT 2
- Windows Kernel support HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zydis-rs.