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

DeadLoop Issue #20

Open
MinghaoLin2000 opened this issue Aug 21, 2024 · 0 comments
Open

DeadLoop Issue #20

MinghaoLin2000 opened this issue Aug 21, 2024 · 0 comments

Comments

@MinghaoLin2000
Copy link

I audited the source code for this project. I found a dead loop issue when the VM executes the JUMP function. For instance, below is an example.
`
case IFN: {
if (registers[instructions[IP + 1]] != instructions[IP + 2]) {
IP = instructions[IP + 3];
//printf("run! id:%d\n",IP);
is_jmp = true;
}
else {
IP = IP + 3;
}
break;
deadloop_poc.mac.zip

    }

`

When instruction[IP+3] is zero, the IP will be assigned to zero. Because the is_jmp is true, the IP won't be added 1.
I have attached my poc.
deadloop_poc.mac.zip

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

1 participant