Skip to content

Commit

Permalink
Print if each interface is exposed or not
Browse files Browse the repository at this point in the history
  • Loading branch information
aegiryy committed Mar 15, 2019
1 parent 5ff0b49 commit 051cbad
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions afl-fuzz.c
Original file line number Diff line number Diff line change
Expand Up @@ -7679,20 +7679,23 @@ void load_custom_library(const char *libname)
#else
dll_init_ptr = (dll_init)GetProcAddress(hLib, "_dll_init@0");
#endif
SAYF("dll_init is %sdefined.\n", dll_init_ptr ? "" : "not ");

//Get pointer to user-defined test cases sending function using GetProcAddress:
#ifdef _WIN64
dll_run_ptr = (dll_run)GetProcAddress(hLib, "dll_run");
#else
dll_run_ptr = (dll_run)GetProcAddress(hLib, "_dll_run@12");
#endif
SAYF("dll_run_ptr is %sdefined.\n", dll_run_ptr ? "" : "not ");

// Get pointer to user-defined run_target function using GetProcAddress:
#ifdef _WIN64
dll_run_target_ptr = (dll_run_target)GetProcAddress(hLib, "dll_run_target");
#else
dll_run_target_ptr = (dll_run_target)GetProcAddress(hLib, "_dll_run_target@16");
#endif
SAYF("dll_run_target is %sdefined.\n", dll_run_target_ptr ? "" : "not ");

SAYF("Sucessfully loaded and initalized\n");
}
Expand Down

0 comments on commit 051cbad

Please sign in to comment.