From 4de90843e7f77b95818d987c3c0994b86c77e9ef Mon Sep 17 00:00:00 2001 From: van Hauser Date: Thu, 19 Sep 2019 17:18:25 +0200 Subject: update to work with dyninst 10.0.1 --- afl-dyninst.cpp | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'afl-dyninst.cpp') diff --git a/afl-dyninst.cpp b/afl-dyninst.cpp index 5b25262..e5e7ff6 100644 --- a/afl-dyninst.cpp +++ b/afl-dyninst.cpp @@ -40,7 +40,7 @@ set < string > instrumentLibraries; set < string > runtimeLibraries; set < string > skipAddresses; set < unsigned long > exitAddresses; -unsigned int bbMinSize = 1; +unsigned int bbMinSize = 10; int bbSkip = 0, performance = 0; bool skipMainModule = false, do_bb = true, dynfix = false; unsigned long int insertions = 0; @@ -63,16 +63,13 @@ static const char *USAGE = "-dfvxD -i -o -l -e 3) { - fprintf(stderr, "Warning: maximum performance level is 3\n"); - performance = 3; + } else*/ if (performance > 2) { + fprintf(stderr, "Warning: maximum performance level is 2\n"); + performance = 2; } break; case 'S': @@ -540,7 +538,9 @@ int main(int argc, char **argv) { (*moduleIter)->getName(moduleName, 1024); if ((*moduleIter)->isSharedLib()) { - if (instrumentLibraries.find(moduleName) == instrumentLibraries.end()) { + if (instrumentLibraries.find(moduleName) == instrumentLibraries.end() + && string(moduleName).find(".so") != string::npos + ) { cout << "Skipping library: " << moduleName << endl; continue; } -- cgit 1.4.1