Skip to content

Commit

Permalink
[FEATURE] Increased limit of functions that IAT must have to trigger …
Browse files Browse the repository at this point in the history
…Import Table recreation
  • Loading branch information
hasherezade committed Sep 4, 2021
1 parent 7ccc63a commit bcfe7f4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion postprocessors/imp_rec/imp_reconstructor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@

#include <fstream>

//! the minimal function count that the additional Import Table must have to trigger Import Table recreation (if run in autodetect mode)
#define MIN_FUNC_COUNT 3

using namespace pesieve;

namespace pesieve {
Expand Down Expand Up @@ -43,7 +46,7 @@ bool pesieve::ImpReconstructor::hasNewImportTables() const
const IATBlock* iblock = iats_itr->second;
if (!iblock->isMain
&& iblock->isTerminated
&& iblock->countThunks() > 1)
&& iblock->countThunks() >= MIN_FUNC_COUNT)
{
has_new_table = true;
break;
Expand Down

0 comments on commit bcfe7f4

Please sign in to comment.