Line | Count | Source |
1 | /* Common include file for Leptonica fuzzers. */ | |
2 | ||
3 | #ifndef LEPTFUZZ_H | |
4 | #define LEPTFUZZ_H | |
5 | ||
6 | #include "allheaders.h" | |
7 | ||
8 | 24.2k | static void send_to_devnull(const char *) {} |
9 | ||
10 | /* Suppress Leptonica error messages during fuzzing. */ | |
11 | static void leptSetStdNullHandler() | |
12 | 1.90k | { |
13 | 1.90k | leptSetStderrHandler(send_to_devnull); |
14 | 1.90k | } |
15 | ||
16 | #endif /* LEPTFUZZ_H */ |