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 b2f054c commit 12f6678
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion builtins/lateincludebuiltins.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ object* builtin_eval(object* self, object* args){
}

struct vm* vm_=::vm;
::vm=new_vm(interpreter.vm_map->size(), code, compiler->instructions, &data); //data is still in scope...
::vm=new_vm(interpreter.vm_map->size(), code, compiler->instructions, new string(data)); //data is still in scope...
interpreter_add_vm(::vm->id, ::vm);

::vm->globals=glbls;
Expand Down

0 comments on commit 12f6678

Please sign in to comment.