Commit 05ba4038 authored by Anjo Vahldiek-Oberwagner's avatar Anjo Vahldiek-Oberwagner
Browse files

fixed interval +1 error

parent 0e47c3b6
......@@ -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;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment