Granary / granary2

Dynamic binary translation framework for instrumenting x86-64 user space Linux programs
MIT License
39 stars 5 forks source link

Fix decoding issue related to instructions crossing pages. #110

Open pgoodman opened 9 years ago

pgoodman commented 9 years ago

This code is broken and very sub-optimal. At most two tries should be performed, and the XED instruction needs to be reset before each attempt. https://github.com/Granary/granary2/blob/master/arch/x86-64/decode.cc#L61-L70