1
0
Fork 0

DBG: fixed issue #1237 (wrong analysis of jmp $0)

This commit is contained in:
mrexodia 2016-11-09 22:47:00 +01:00
parent a4419b5457
commit 80d9db7957
No known key found for this signature in database
GPG Key ID: FC89E0AAA0C1AAD8
1 changed files with 2 additions and 2 deletions

View File

@ -259,9 +259,9 @@ extern "C" DLL_EXPORT bool _dbg_addrinfoget(duint addr, SEGMENTREG segment, ADDR
if(instr.arg[i].constant == instr.arg[i].value) //avoid: call <module.label> ; addr:label
{
auto constant = instr.arg[i].constant;
if(instr.arg[i].value == addr + instr.instr_size && strstr(instr.instruction, "call"))
if(instr.arg[i].type == arg_normal && instr.arg[i].value == addr + instr.instr_size && strstr(instr.instruction, "call"))
temp_string.assign("call $0");
else if(instr.arg[i].value == addr + instr.instr_size && strstr(instr.instruction, "jmp"))
else if(instr.arg[i].type == arg_normal && instr.arg[i].value == addr + instr.instr_size && strstr(instr.instruction, "jmp"))
temp_string.assign("jmp $0");
else if(instr.type == instr_branch)
continue;