-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
vm: fix crash due to stale frame pointer
In some cases, calls made while processing insns in uc_vm_execute_chunk can lead to realloc of vm->callframes without reloading the current frame pointer. This was observed with I_ADD (which can call an object's tostring method). Instead of playing whac-a-mole with insns affecting the frame pointer, let's reload it whenever necessary. Signed-off-by: Felix Fietkau <[email protected]>
- Loading branch information
Showing
1 changed file
with
7 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters