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

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

Issue 2089623002: [libfuzzer] Use contents of .bdic file as a dictionary for hunspell_fuzzer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 6 months 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/BUILD.gn ('k') | third_party/hunspell/fuzz/hunspell_fuzzer_dictionary.h » ('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 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());
« no previous file with comments | « third_party/hunspell/BUILD.gn ('k') | third_party/hunspell/fuzz/hunspell_fuzzer_dictionary.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698