OLD | NEW |
---|---|
(Empty) | |
1 #include <stddef.h> | |
2 #include <stdint.h> | |
3 | |
4 #include "woff2_dec.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 } | |
OLD | NEW |