#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 \
{
virtual int init()
Definition: fuzzer.h:84
◆ BEGIN_SIMPLE_FUZZER
| #define BEGIN_SIMPLE_FUZZER |
( |
| ) |
|
Value: { \
try \
{ \
std::cout << "Error: failed to load file " << filename << std::endl; \
return 1; \
} \
const
size_t len =
s.size(); \
{
::std::string string
Definition: gtest-port.h:1097
const char * s
Definition: minissdp.c:596
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
def run(t, blocks)
Definition: block_weight.py:35
unsigned char uint8_t
Definition: stdint.h:124
const char * buf
Definition: slow_memmem.cpp:73
◆ 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; \
}
e
Definition: pymoduletest.py:79
stderr
Definition: compare.py:15
◆ 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); \
}
ELPP_EXPORT base::type::StoragePointer elStorage
int run_fuzzer(int argc, const char **argv, Fuzzer &fuzzer)
Definition: fuzzer.cpp:49
int main(int ac, char *av[])
Definition: CheckLinkerFlag.c:7
e
Definition: pymoduletest.py:79
stderr
Definition: compare.py:15
◆ run_fuzzer()
| int run_fuzzer |
( |
int |
argc, |
|
|
const char ** |
argv, |
|
|
Fuzzer & |
fuzzer |
|
) |
| |