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

Fix JIT instruction meter in syscall & unresolved symbol exceptions #203

Merged
merged 2 commits into from
Jul 22, 2021

Conversation

Lichtso
Copy link

@Lichtso Lichtso commented Jul 22, 2021

The unresolved symbol exception did not check if the instruction meter reached its limit earlier.
And the syscall exception did not adjust the instruction meter after the call, leaving it in a corrupted state.
This PR also introduces a new test which covers these bugs and additionally tests nested JIT VMs via syscalls.

@Lichtso Lichtso added the bug Something isn't working label Jul 22, 2021
@Lichtso Lichtso force-pushed the test/nested_vm_syscall branch 2 times, most recently from b6b3f33 to d6f0f11 Compare July 22, 2021 16:22
Lichtso added 2 commits July 22, 2021 19:02
One in syscalls which throw an exception and one in the unresolved symbol exception.
@Lichtso Lichtso force-pushed the test/nested_vm_syscall branch from d6f0f11 to ed20e04 Compare July 22, 2021 17:06
@Lichtso Lichtso merged commit d87fac7 into main Jul 22, 2021
@Lichtso Lichtso deleted the test/nested_vm_syscall branch July 22, 2021 19:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant