Skip to content
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

[libafl_qemu] fix i386 Regs values #444

Merged
merged 1 commit into from
Jan 3, 2022
Merged

Conversation

evanrichter
Copy link
Collaborator

The Regs enum was defined out of order, leading to incorrect results from emu.read_reg for i386. I found the correct ordering defined here.

The `Regs` enum was defined out of order, leading to incorrect results from `emu.read_reg`. I found the correct ordering defined here: https://github.com/AFLplusplus/qemu-libafl-bridge/blob/master/target/i386/cpu.h#L46-L54
@domenukk domenukk merged commit 9f6872a into AFLplusplus:main Jan 3, 2022
@domenukk
Copy link
Member

domenukk commented Jan 3, 2022

Thanks :)

@domenukk
Copy link
Member

domenukk commented Jan 3, 2022

You're the first one to use that mode I assume 😁

@evanrichter
Copy link
Collaborator Author

Yeah, I believe so! It's all good, you've been so responsive to my PRs. Glad to give back and help libafl get more robust!

khang06 pushed a commit to khang06/LibAFL that referenced this pull request Oct 11, 2022
The `Regs` enum was defined out of order, leading to incorrect results from `emu.read_reg`. I found the correct ordering defined here: https://github.com/AFLplusplus/qemu-libafl-bridge/blob/master/target/i386/cpu.h#L46-L54
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

Successfully merging this pull request may close these issues.

None yet

2 participants