Skip to content

Commit

Permalink
Bug fixes for undefined behavior
Browse files Browse the repository at this point in the history
Relating to delete of pointer to local var
  • Loading branch information
EricLBuehler authored Dec 5, 2022
1 parent 674a540 commit 6aef699
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Binary file modified falcon.exe
Binary file not shown.
2 changes: 1 addition & 1 deletion main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ int main(int argc, char** argv) {
fpl_startup();

struct compiler* compiler = new_compiler();
::vm=new_vm(interpreter.vm_map->size(), NULL, compiler->instructions, NULL); //data is still in scope...
::vm=new_vm(interpreter.vm_map->size(), NULL, compiler->instructions, new string(NULL)); //data is still in scope...
interpreter_add_vm(interpreter.vm_map->size(), vm);
gil_lock(vm->id);
dict_set_noret(::vm->globals, str_new_fromstr("__annotations__"), ::callstack_head(vm->callstack).annotations);
Expand Down

0 comments on commit 6aef699

Please sign in to comment.