mirror of
https://github.com/OpenVPN/openvpn.git
synced 2026-06-09 00:42:51 -04:00
fuzzer-standalone-loader.c: add comments
This commit is contained in:
parent
8850b55c01
commit
d2b4ea016b
1 changed files with 14 additions and 0 deletions
|
|
@ -3,6 +3,20 @@
|
|||
#include <sys/stat.h>
|
||||
#include <stdint.h>
|
||||
|
||||
/* This is a standalone program that loads every file specified
|
||||
* as a command-line argument, and runs LLVMFuzzerTestOneInput
|
||||
* on this data. This function is normally called by libFuzzer
|
||||
* for every input it generates. This standalone program
|
||||
* makes it possible to run just a specific input or inputs.
|
||||
*
|
||||
* This is necessary if you want to test your input files
|
||||
* with MemorySantizer, because libFuzzer doesn't work well
|
||||
* with MemorySanitizer.
|
||||
*
|
||||
* Code inspired by:
|
||||
* https://github.com/openssl/openssl/blob/master/fuzz/test-corpus.c
|
||||
*/
|
||||
|
||||
int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size);
|
||||
int LLVMFuzzerInitialize(int *argc, char ***argv);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue