Git Product home page Git Product logo

Comments (5)

athre0z avatar athre0z commented on June 23, 2024 1

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.

r3bb1t avatar r3bb1t commented on June 23, 2024 1

We need the updated zydis-c submodule to fix this

from zydis-rs.

athre0z avatar athre0z commented on June 23, 2024 1

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.

athre0z avatar athre0z commented on June 23, 2024 1

Following the corresponding Zydis release on Sunday, I just published v4.1.0-beta.1 that includes this fix.

from zydis-rs.

r3bb1t avatar r3bb1t commented on June 23, 2024

Update:
This is not a rust bindings bug, it's a Zydis's bug itself

from zydis-rs.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.