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

Unified Diff: third_party/WebKit/Source/platform/TextCodecFuzzer.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/TextCodecFuzzer.cpp
diff --git a/third_party/WebKit/Source/platform/TextCodecFuzzer.cpp b/third_party/WebKit/Source/platform/TextCodecFuzzer.cpp
index 947a70bd0554b95c6037bc00684068ab84b5c9c9..23aaa7f8153155ae0663dc5d9160136ca95983c2 100644
--- a/third_party/WebKit/Source/platform/TextCodecFuzzer.cpp
+++ b/third_party/WebKit/Source/platform/TextCodecFuzzer.cpp
@@ -25,13 +25,10 @@ WTF::UnencodableHandling kUnencodableHandlingOptions[] = {
WTF::kCSSEncodedEntitiesForUnencodables};
class TextCodecFuzzHarness {};
-extern "C" int LLVMFuzzerInitialize(int* argc, char*** argv) {
- InitializeBlinkFuzzTest(argc, argv);
- return 0;
-}
// Fuzzer for WTF::TextCodec.
extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
+ static BlinkFuzzerTestSupport test_support = BlinkFuzzerTestSupport();
// The fuzzer picks 3 bytes off the end of the data to initialize metadata, so
// abort if the input is smaller than that.
if (size < 3)
« no previous file with comments | « third_party/WebKit/Source/platform/PngFuzzer.cpp ('k') | third_party/WebKit/Source/platform/WebIconSizesFuzzer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698