Skip to content
Snippets Groups Projects
Commit 3922b589 authored by Jason Hiser's avatar Jason Hiser :tractor:
Browse files

more type-punning removal

parent becde297
No related branches found
No related tags found
No related merge requests found
......@@ -72,7 +72,9 @@ void UnpinX86_t::HandleRetAddrReloc(Instruction_t* from_insn, Relocation_t* relo
unsigned char newpush[5];
newpush[0]=0x68;
*(int*)&newpush[1]=(int)wrt_insn_location;
const auto newVal=(int)wrt_insn_location;
// *(int*)&newpush[1]=(int)wrt_insn_location;
memcpy(&newpush[1],&newVal,sizeof(newVal));
cout<<"Unpin::Updating push32/push64-exe insn:"
<<dec<<from_insn->getBaseID()<<":"<<from_insn->getDisassembly()<<"@"<<hex<<from_insn_location<<" to point at "
......
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