From 051cbad0b6a3f2cfc7e46772b2f179026c15e386 Mon Sep 17 00:00:00 2001 From: Xinyang Ge Date: Thu, 14 Mar 2019 19:42:07 -0700 Subject: [PATCH] Print if each interface is exposed or not --- afl-fuzz.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/afl-fuzz.c b/afl-fuzz.c index 29adc329..cc596561 100644 --- a/afl-fuzz.c +++ b/afl-fuzz.c @@ -7679,6 +7679,7 @@ 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 @@ -7686,6 +7687,7 @@ void load_custom_library(const char *libname) #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 @@ -7693,6 +7695,7 @@ void load_custom_library(const char *libname) #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"); }