Backed out 7 changesets (bug 1839993) for causing build bustages on DecoderTemplate...
[gecko.git] / modules / woff2 / src / convert_woff2ttf_fuzzer.cc
blob2d977a3ef20e550a0376c764912c13acbfff688a
1 #include <stddef.h>
2 #include <stdint.h>
4 #include <woff2/decode.h>
6 // Entry point for LibFuzzer.
7 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
8 std::string buf;
9 woff2::WOFF2StringOut out(&buf);
10 out.SetMaxSize(30 * 1024 * 1024);
11 woff2::ConvertWOFF2ToTTF(data, size, &out);
12 return 0;