Debian Codegraph @

src/convert_woff2ttf_fuzzer.cc

raw
1 #include <stddef.h>
2 #include <stdint.h>
3
4 #include <woff2/decode.h>
5
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;
13 }