Skip to content
Snippets Groups Projects
Commit 6896664c authored by an7s's avatar an7s
Browse files

padding heuristic: div by 16 + 128 bytes

Former-commit-id: 7c6daaa58db3cb686546aa56a36bd0a526fbd1a5
parent fd0d6add
No related branches found
No related tags found
No related merge requests found
......@@ -60,7 +60,7 @@ bool HLX_Instrument::padSize(Function_t* const p_func)
orig = insertAssemblyBefore(m_firp, entry, "mov eax, [esp+4]");
entry->SetComment("pad malloc/allocate sequence");
instr = insertAssemblyAfter(m_firp, entry, "shr eax, 4");
instr = insertAssemblyAfter(m_firp, instr, "add eax, 64");
instr = insertAssemblyAfter(m_firp, instr, "add eax, 128");
instr = insertAssemblyAfter(m_firp, instr, "add [esp+4], eax");
instr->SetFallthrough(orig);
......
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