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

Unified Diff: third_party/WebKit/Source/platform/mhtml/MHTMLFuzzer.cpp

Issue 2900373002: Remove LLVMFuzzerInitialize from many Blink fuzzers (Closed)
Patch Set: Created 3 years, 7 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
Index: third_party/WebKit/Source/platform/mhtml/MHTMLFuzzer.cpp
diff --git a/third_party/WebKit/Source/platform/mhtml/MHTMLFuzzer.cpp b/third_party/WebKit/Source/platform/mhtml/MHTMLFuzzer.cpp
index 30e8f7a8bb2da9145d82b3b53eea5332240ed769..47a099e6593a5da5013dcb6e1e295dd0f276f3b1 100644
--- a/third_party/WebKit/Source/platform/mhtml/MHTMLFuzzer.cpp
+++ b/third_party/WebKit/Source/platform/mhtml/MHTMLFuzzer.cpp
@@ -14,6 +14,7 @@ namespace blink {
// Fuzzer for blink::MHTMLParser.
int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
+ static BlinkFuzzerTestSupport test_support = BlinkFuzzerTestSupport();
MHTMLParser mhtml_parser(SharedBuffer::Create(data, size));
HeapVector<Member<ArchiveResource>> mhtml_archives =
mhtml_parser.ParseArchive();
@@ -28,8 +29,3 @@ int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
return blink::LLVMFuzzerTestOneInput(data, size);
}
-
-extern "C" int LLVMFuzzerInitialize(int* argc, char*** argv) {
- blink::InitializeBlinkFuzzTest(argc, argv);
- return 0;
-}

Powered by Google App Engine
This is Rietveld 408576698