aboutsummaryrefslogtreecommitdiffstats
path: root/util/string/fuzzing/strtod/main.cpp
blob: 91eb5ff5062a631449c3d5017a9a46beef4b19f8 (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. 
}