Commit bd3c7925 authored by Victor Zverovich's avatar Victor Zverovich

Fix float fuzzer

parent 8d3fd86d
......@@ -28,7 +28,7 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
char* ptr = nullptr;
if (std::strtod(buffer.data(), &ptr) != value)
throw std::runtime_error("round trip failure");
if (ptr != buffer.end())
if (ptr + 1 != buffer.end())
throw std::runtime_error("unparsed output");
return 0;
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment