Skip to content
Snippets Groups Projects
Commit 89927fca authored by bdr7fv's avatar bdr7fv
Browse files

Added a check for a null func pointer in Rewrite_Utility.cpp


Former-commit-id: b4b7c7ef23662a33672cc7707045d6e783cd8488
parent 3743e02e
No related branches found
No related tags found
No related merge requests found
......@@ -111,8 +111,13 @@ Instruction_t* allocateNewInstruction(FileIR_t* virp, db_id_t p_fileID,Function_
virp->GetInstructions().insert(instr);
virp->GetAddresses().insert(a);
inserted_instr[func->GetName()].insert(instr);
inserted_addr[func->GetName()].insert(a);
string name = "1_null_func_dummy_1";
if(func != NULL)
name = func->GetName();
inserted_instr[name].insert(instr);
inserted_addr[name].insert(a);
return instr;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment