ntoskrnl.exe: Fix incorrect interpretation of SIB byte when parsing x86 opcode.

Sebastian Lackner sebastian at fds-team.de
Thu Nov 6 22:44:13 CST 2014


I hope this issue is obvious enough without writing tests for that. ;)

Layout of the SIB byte should be:
* bits 0-2 base
* bits 3-5 index
* bits 6-7 scale

The current incorrect implementation has the effect, that when the scale bits are set, the index is not recognized anymore.

---
 dlls/ntoskrnl.exe/instr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-ntoskrnl.exe-Fix-incorrect-interpretation-of-SIB-byt.patch
Type: text/x-patch
Size: 864 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20141107/c4480461/attachment.bin>


More information about the wine-patches mailing list