| 24 | |
| 25 | template <typename T> |
| 26 | static T AttemptConversion(args::ValueReader &reader, const std::string &input) |
| 27 | { |
| 28 | T destination{}; |
| 29 | try |
| 30 | { |
| 31 | reader("fuzz_test", input, destination); |
| 32 | } |
| 33 | catch (...) |
| 34 | { |
| 35 | // Expected rejection for values this type cannot represent. |
| 36 | } |
| 37 | return destination; |
| 38 | } |
| 39 | |
| 40 | extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) { |
| 41 | // Create a string from fuzzer input, preserving embedded NULs |
nothing calls this directly
no outgoing calls
no test coverage detected