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

Unified Diff: third_party/WebKit/Source/core/css/StyleSheetContentsFuzzer.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/core/css/StyleSheetContentsFuzzer.cpp
diff --git a/third_party/WebKit/Source/core/css/StyleSheetContentsFuzzer.cpp b/third_party/WebKit/Source/core/css/StyleSheetContentsFuzzer.cpp
index eb3afd56e7dca9a4db52353ea2a030f1dce0fb93..a2a3c739404d85ac94010f72d0958745b083c3ef 100644
--- a/third_party/WebKit/Source/core/css/StyleSheetContentsFuzzer.cpp
+++ b/third_party/WebKit/Source/core/css/StyleSheetContentsFuzzer.cpp
@@ -8,6 +8,8 @@
#include "platform/wtf/text/WTFString.h"
extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
+ static blink::BlinkFuzzerTestSupport test_support =
+ blink::BlinkFuzzerTestSupport();
blink::CSSParserContext* context =
blink::CSSParserContext::Create(blink::kHTMLStandardMode);
blink::StyleSheetContents* styleSheet =
@@ -17,7 +19,3 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
return 0;
}
-extern "C" int LLVMFuzzerInitialize(int* argc, char*** argv) {
- blink::InitializeBlinkFuzzTest(argc, argv);
- return 0;
-}

Powered by Google App Engine
This is Rietveld 408576698