| 8 | #include <tests/fuzz/libfuzz.h> |
| 9 | |
| 10 | void init(int *argc, char ***argv) |
| 11 | { |
| 12 | /* Don't run as a unit test under valgrind: too slow! */ |
| 13 | #ifndef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION |
| 14 | if (getenv("VALGRIND") && strcmp(getenv("VALGRIND"), "1") == 0) { |
| 15 | common_shutdown(); |
| 16 | exit(0); |
| 17 | } |
| 18 | #endif |
| 19 | } |
| 20 | |
| 21 | void run(const uint8_t *data, size_t size) |
| 22 | { |
nothing calls this directly
no test coverage detected