#include <string>
#include "file_io_utils.h"
Go to the source code of this file.
◆ BEGIN_INIT_SIMPLE_FUZZER
| #define BEGIN_INIT_SIMPLE_FUZZER |
( |
| ) |
|
Value:class SimpleFuzzer:
public Fuzzer \
{ \
{ \
try \
{
static void init()
Definition logging.cpp:42
◆ BEGIN_SIMPLE_FUZZER
| #define BEGIN_SIMPLE_FUZZER |
( |
| ) |
|
Value:virtual int run(const std::string &filename) \
{ \
try \
{ \
{ \
std::cout << "Error: failed to load file " << filename << std::endl; \
return 1; \
} \
const size_t len =
s.size(); \
{
#define s(x, c)
Definition aesb.c:47
bool load_file_to_string(const std::string &path_to_file, std::string &target_str, size_t max_size=1000000000)
Definition file_io_utils.cpp:105
const char * buf
Definition slow_memmem.cpp:73
unsigned char uint8_t
Definition stdint.h:124
◆ END_INIT_SIMPLE_FUZZER
| #define END_INIT_SIMPLE_FUZZER |
( |
| ) |
|
Value: } \
catch (const std::exception &e) \
{ \
fprintf(stderr, "Exception: %s\n", e.what()); \
return 1; \
} \
return 0; \
}
◆ END_SIMPLE_FUZZER
| #define END_SIMPLE_FUZZER |
( |
| ) |
|
Value: } \
} \
catch (const std::exception &e) \
{ \
fprintf(stderr,
"Exception: %s\n",
e.what()); \
return 0; \
} \
return 0; \
} \
}; \
int main(
int argc,
const char **argv) \
{ \
TRY_ENTRY(); \
SimpleFuzzer fuzzer; \
CATCH_ENTRY_L0("main", 1); \
}
int run_fuzzer(int argc, const char **argv, Fuzzer &fuzzer)
Definition fuzzer.cpp:49
ELPP_EXPORT base::type::StoragePointer elStorage
e
Definition pymoduletest.py:79
int main(void)
Definition testportlistingparse.c:138
◆ run_fuzzer()
| int run_fuzzer |
( |
int | argc, |
|
|
const char ** | argv, |
|
|
Fuzzer & | fuzzer ) |