Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(197)

Unified Diff: third_party/hunspell/fuzz/hunspell_fuzzer.cc

Issue 2544793003: [spellcheck] Updated Hunspell to 1.5.4 (Closed)
Patch Set: Updated patch with encoding change Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/hunspell/README.chromium ('k') | third_party/hunspell/google.patch » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« no previous file with comments | « third_party/hunspell/README.chromium ('k') | third_party/hunspell/google.patch » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698