Skip to content

Commit

Permalink
[BUGFIX] In code scan: fixed sections wrongly identified as executable
Browse files Browse the repository at this point in the history
  • Loading branch information
hasherezade committed Dec 30, 2019
1 parent fb383be commit 7637c6c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scanners/module_data.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,10 @@ bool RemoteModuleData::isSectionExecutable(size_t section_number)
if (page_info.Type == MEM_IMAGE) {
is_any_exec = (protection & SECTION_MAP_EXECUTE)
|| (protection & SECTION_MAP_EXECUTE_EXPLICIT);
if (is_any_exec) return true;
if (is_any_exec) {
return true;
}
return false;
}
is_any_exec = (initial_protect & PAGE_EXECUTE_READWRITE)
|| (initial_protect & PAGE_EXECUTE_READ)
Expand Down

0 comments on commit 7637c6c

Please sign in to comment.