diff options
-rw-r--r-- | fuzz/tagfuzzer.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/fuzz/tagfuzzer.cpp b/fuzz/tagfuzzer.cpp index 1656770..1b7b71f 100644 --- a/fuzz/tagfuzzer.cpp +++ b/fuzz/tagfuzzer.cpp @@ -17,15 +17,12 @@ #include <liblangtag/langtag.h> -extern "C" int LLVMFuzzerInitialize(int *, char ***) -{ - lt_db_set_datadir(FUZZ_DATADIR); -} - extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { const std::string s(reinterpret_cast<const char *>(data), size); + lt_db_set_datadir(FUZZ_DATADIR); + lt_tag_t *tag = lt_tag_new(); lt_error_t *error = 0; |