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

Incorrectly handled x86 instruction, rcl memory, immediate #1312

Open
jaihysc opened this issue Mar 20, 2024 · 3 comments
Open

Incorrectly handled x86 instruction, rcl memory, immediate #1312

jaihysc opened this issue Mar 20, 2024 · 3 comments

Comments

@jaihysc
Copy link

jaihysc commented Mar 20, 2024

These instructions cause a vector subscript out of range for all registers, I listed only eax and rax

  • rcl byte ptr [eax]
  • rcl byte ptr [rax]
  • rcl word ptr [eax]
  • rcl word ptr [rax]
  • rcl dword ptr [eax]
  • rcl dword ptr [rax]
  • rcl qword ptr [eax]
  • rcl qword ptr [rax]

The code used for testing

auto ctx = triton::Context();
ctx.setArchitecture(triton::arch::architecture_e::ARCH_X86_64);

uint8_t opcode[] = {0xd1, 0x14, 0x24}; // rcl dword ptr [rsp]
auto instruction = triton::arch::Instruction(opcode, 3);
ctx.processing(instruction);
@jaihysc jaihysc changed the title x86 rcl with memory error x86 rcl with memory, error vector subscript out of range Mar 20, 2024
@jaihysc
Copy link
Author

jaihysc commented Mar 22, 2024

Tried on the vcpkg and master branch - same issue.

@JonathanSalwan
Copy link
Owner

Thx for the report. I will dig into this bug as soon as I can :)

@jaihysc jaihysc changed the title x86 rcl with memory, error vector subscript out of range Incorrectly handled x86 instruction, rcl memory, immediate Apr 13, 2024
@ZehMatt
Copy link
Contributor

ZehMatt commented Sep 6, 2024

Ran into the same issue, any news on this?

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

No branches or pull requests

3 participants