Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Anjo Vahldiek-Oberwagner
ERIM
Commits
05ba4038
Commit
05ba4038
authored
Oct 28, 2019
by
Anjo Vahldiek-Oberwagner
Browse files
fixed interval +1 error
parent
0e47c3b6
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/binaryanalysis/mod_disas_cpp/mod_disas_dyninst.cpp
View file @
05ba4038
...
...
@@ -250,7 +250,7 @@ Instruction::Ptr find_insn(mod_disas_dyn_t * c, erim_input_t * in,
break
;
}
if
(
*
crtAddr
<=
location
&&
*
crtAddr
+
insn
->
size
()
>
=
location
)
{
if
(
*
crtAddr
<=
location
&&
*
crtAddr
+
insn
->
size
()
>
location
)
{
// found the instruction
break
;
}
...
...
@@ -595,7 +595,7 @@ int mod_disas_dyn_check(mod_disas_t * md, erim_input_t * in,
r
=
c
->
region
;
if
(
crtAddr
<=
location
&&
crtAddr
+
insn
->
size
()
>
=
location
)
{
if
(
crtAddr
<=
location
&&
crtAddr
+
insn
->
size
()
>
location
)
{
res
->
raw_bytes_len
=
res
->
insn_len
[
0
]
=
insn
->
size
();
res
->
insn_addr
[
0
]
=
crtAddr
;
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment