| 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 df26b8574ef23763271e90137182b3d27bb94339..7efda6c254ab5e4015a0a8bc631070e310705ba3 100644
|
| --- a/third_party/hunspell/fuzz/hunspell_fuzzer.cc
|
| +++ b/third_party/hunspell/fuzz/hunspell_fuzzer.cc
|
| @@ -26,11 +26,10 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
|
| base::string16 utf16_string = base::UTF8ToUTF16(data_string);
|
| data_string = base::UTF16ToUTF8(utf16_string);
|
|
|
| - hunspell->spell(data_string.c_str());
|
| + hunspell->spell(data_string);
|
|
|
| - char** suggestions = nullptr;
|
| - int suggestion_length = hunspell->suggest(&suggestions, data_string.c_str());
|
| - hunspell->free_list(&suggestions, suggestion_length);
|
| + std::vector<std::string> suggestions =
|
| + hunspell->suggest(data_string);
|
|
|
| return 0;
|
| }
|
|
|