Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Z
zipr_unpin_plugin
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
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Open Source Software
zipr_unpin_plugin
Commits
5ddec5d8
Commit
5ddec5d8
authored
7 years ago
by
jdh8d
Browse files
Options
Downloads
Patches
Plain Diff
Changed to fully use capstone! should be working, but still comparing against Bea for a while
parent
6caee170
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
unpin.cpp
+2
-2
2 additions, 2 deletions
unpin.cpp
with
2 additions
and
2 deletions
unpin.cpp
+
2
−
2
View file @
5ddec5d8
...
...
@@ -451,7 +451,7 @@ void Unpin_t::DoUpdateForInstructions()
virtual_offset_t
rel_addr1
=
the_arg
.
getMemoryDisplacement
();
// ->Memory.Displacement;
rel_addr1
+=
from_insn
->
GetDataBits
().
size
();
int
disp_offset
=
disasm
.
getMemoryDisplacementOffset
(
the_arg
);
// the_arg->Memory.DisplacementAddr-disasm.EIP;
int
disp_offset
=
disasm
.
getMemoryDisplacementOffset
(
the_arg
,
from_insn
);
// the_arg->Memory.DisplacementAddr-disasm.EIP;
int
disp_size
=
the_arg
.
getMemoryDisplacementEncodingSize
();
// the_arg->Memory.DisplacementSize;
libIRDB
::
virtual_offset_t
from_insn_location
=
locMap
[
from_insn
];
assert
(
disp_size
==
4
);
...
...
@@ -504,7 +504,7 @@ void Unpin_t::DoUpdateForInstructions()
virtual_offset_t
rel_addr1
=
the_arg
.
getMemoryDisplacement
();
// ->Memory.Displacement;
//virtual_offset_t rel_addr1=the_arg->Memory.Displacement;
int
disp_offset
=
disasm
.
getMemoryDisplacementOffset
(
the_arg
);
// the_arg->Memory.DisplacementAddr-disasm.EIP;
int
disp_offset
=
disasm
.
getMemoryDisplacementOffset
(
the_arg
,
from_insn
);
// the_arg->Memory.DisplacementAddr-disasm.EIP;
int
disp_size
=
the_arg
.
getMemoryDisplacementEncodingSize
();
// the_arg->Memory.DisplacementSize;
//int disp_offset=the_arg->Memory.DisplacementAddr-disasm.EIP;
//int disp_size=the_arg->Memory.DisplacementSize;
...
...
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