aboutsummaryrefslogtreecommitdiffstats
path: root/util/string/fuzzing/strtod/main.cpp
blob: 50ea2a6afcbefd9bc27d3b37cf944bdfd559f231 (plain) (blame)
1
2
3
4
5
6
7
8
9
#include <util/string/cast.h>

extern "C" int LLVMFuzzerTestOneInput(const ui8* data, size_t size) {
    double res;

    TryFromString<double>((const char*)data, size, res);

    return 0; // Non-zero return values are reserved for future use.
}