1
0
Fork 0

DBG: fixed invalid report of "Assembled branch does not point to an executable memory region!"

This commit is contained in:
mrexodia 2016-02-09 16:47:46 +01:00
parent bc9c05537f
commit 4fff09277b
1 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@ static bool isInstructionPointingToExMemory(duint addr, const unsigned char* des
{
BASIC_INSTRUCTION_INFO basicinfo;
// Check if the instruction changes CIP and if it does not pretent it does point to valid executable memory.
if(!disasmfast(dest, addr, &basicinfo) || !basicinfo.branch)
if(!disasmfast(dest, addr, &basicinfo) || !basicinfo.branch || (basicinfo.type & TYPE_ADDR) == 0)
return true;
// An instruction pointing to invalid memory does not point to executable memory.