This commit is contained in:
Rod Sheeter
2017-01-03 11:37:49 -08:00
parent 63b8fb6d0d
commit 8109a2cc2b
4 changed files with 38 additions and 4 deletions
+13
View File
@@ -0,0 +1,13 @@
#include <stddef.h>
#include <stdint.h>
#include "woff2_dec.h"
// Entry point for LibFuzzer.
extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
std::string buf;
woff2::WOFF2StringOut out(&buf);
out.SetMaxSize(30 * 1024 * 1024);
woff2::ConvertWOFF2ToTTF(data, size, &out);
return 0;
}