Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Z
Zipr Toolchain
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Open Source Software
Zipr Toolchain
Commits
6896664c
Commit
6896664c
authored
10 years ago
by
an7s
Browse files
Options
Downloads
Patches
Plain Diff
padding heuristic: div by 16 + 128 bytes
Former-commit-id: 7c6daaa58db3cb686546aa56a36bd0a526fbd1a5
parent
fd0d6add
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tools/cgc_hlx/cgc_hlx.cpp
+1
-1
1 addition, 1 deletion
tools/cgc_hlx/cgc_hlx.cpp
with
1 addition
and
1 deletion
tools/cgc_hlx/cgc_hlx.cpp
+
1
−
1
View file @
6896664c
...
...
@@ -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
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment