source: zzuf/trunk/test/zznop.c @ 4107

Last change on this file since 4107 was 4107, checked in by sam, 5 years ago

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

File size: 883 bytes
Line 
1/*
2 *  zznop - almost empty program that does almost nothing
3 *  Copyright (c) 2009 Sam Hocevar <sam@hocevar.net>
4 *                All Rights Reserved
5 *
6 *  $Id$
7 *
8 *  This program is free software. It comes without any warranty, to
9 *  the extent permitted by applicable law. You can redistribute it
10 *  and/or modify it under the terms of the Do What The Fuck You Want
11 *  To Public License, Version 2, as published by Sam Hocevar. See
12 *  http://sam.zoy.org/wtfpl/COPYING for more details.
13 */
14
15#include "config.h"
16
17#include <stdio.h>
18#include <stdlib.h>
19
20#if defined HAVE_WINDOWS_H
21#   include <windows.h>
22#endif
23
24int main(void)
25{
26#if defined HAVE_WINDOWS_H
27    AllocConsole();
28
29    fprintf(stderr, "About to call LoadLibraryA()\n");
30    //LoadLibraryA("whatever");
31    fprintf(stderr, "Finished calling LoadLibraryA()\n");
32
33    getchar();
34#endif
35
36    return EXIT_SUCCESS;
37}
38
Note: See TracBrowser for help on using the repository browser.