Changeset 4107 for zzuf/trunk


Ignore:
Timestamp:
Dec 7, 2009, 7:35:45 PM (11 years ago)
Author:
Sam Hocevar
Message:

Give the fuzzed Win32 program a chance to display something even
if the diverted function itself causes a crash.

Location:
zzuf/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • zzuf/trunk/src/sys.c

    r1701 r4107  
    4444HINSTANCE __stdcall LoadLibraryA_new(LPCSTR path)
    4545{
    46     void *ret = LoadLibraryA_orig(path);
     46    void *ret;
    4747    fprintf(stderr, "If you see this message, DLL preloading worked\n");
     48    ret = LoadLibraryA_orig(path);
     49    fprintf(stderr, "If you see this message, function diversion worked\n");
    4850    return ret;
    4951}
  • zzuf/trunk/test/zznop.c

    r3979 r4107  
    2828
    2929    fprintf(stderr, "About to call LoadLibraryA()\n");
    30     LoadLibraryA("whatever");
     30    //LoadLibraryA("whatever");
    3131    fprintf(stderr, "Finished calling LoadLibraryA()\n");
    3232
Note: See TracChangeset for help on using the changeset viewer.