#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include "fuzz.h"
Go to the source code of this file.
◆ main()
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Main procedure for standalone fuzzing engine.
Reads filenames from the argument array. For each filename, read the file into memory and then call the fuzzing interface with the data.
Definition at line 13 of file standaloneengine.c.
16 for(ii = 1; ii < argc; ii++)
32 buffer_len = ftell(
infile);
43 printf(
"Read %zu bytes, fuzzing.. ", buffer_len);
57 "[%s] Failed to allocate %zu bytes \n",
69 fprintf(stderr,
"[%s] Open failed. \n",
argv[ii]);
_Use_decl_annotations_ int __cdecl printf(const char *const _Format,...)
int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size)
RZ_API void Ht_() free(HtName_(Ht) *ht)
void * calloc(size_t number, size_t size)
static static fork const void static count static fd const char const char static newpath char char argv
References argv, calloc(), benchmark::FILE, free(), L, LLVMFuzzerTestOneInput(), NULL, printf(), SEEK_END, and SEEK_SET.