| Index: third_party/hunspell/fuzz/hunspell_fuzzer.cc
|
| diff --git a/third_party/hunspell/fuzz/hunspell_fuzzer.cc b/third_party/hunspell/fuzz/hunspell_fuzzer.cc
|
| index 9dc4fd0eb01874d39cae485a3cea94c736831600..cf125267e45ed9ec38d212e798ee86887b2a4e7b 100644
|
| --- a/third_party/hunspell/fuzz/hunspell_fuzzer.cc
|
| +++ b/third_party/hunspell/fuzz/hunspell_fuzzer.cc
|
| @@ -7,16 +7,15 @@
|
| #include <string>
|
|
|
| #include "third_party/hunspell/src/hunspell/hunspell.hxx"
|
| -#include "third_party/hunspell/fuzz/hunspell_fuzzer_dictionary.h"
|
| +#include "third_party/hunspell/fuzz/hunspell_fuzzer_hunspell_dictionary.h"
|
|
|
| // Entry point for LibFuzzer.
|
| extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
|
| if (!size)
|
| return 0;
|
|
|
| - static Hunspell* hunspell = new Hunspell(
|
| - reinterpret_cast<const unsigned char*>(kHunspellDictionary),
|
| - sizeof(kHunspellDictionary));
|
| + static Hunspell* hunspell = new Hunspell(kHunspellDictionary,
|
| + sizeof(kHunspellDictionary));
|
|
|
| std::string data_string(reinterpret_cast<const char*>(data), size);
|
| hunspell->spell(data_string.c_str());
|
|
|