Index: third_party/WebKit/Source/platform/PngFuzzer.cpp |
diff --git a/third_party/WebKit/Source/platform/PngFuzzer.cpp b/third_party/WebKit/Source/platform/PngFuzzer.cpp |
index 4240c5520a814de77948a4cd7bfc2454036c153a..8898d67700239b18dd5f20d3699ddfca3bdad6c2 100644 |
--- a/third_party/WebKit/Source/platform/PngFuzzer.cpp |
+++ b/third_party/WebKit/Source/platform/PngFuzzer.cpp |
@@ -37,6 +37,7 @@ std::unique_ptr<ImageDecoder> CreateDecoder( |
} |
int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) { |
+ static BlinkFuzzerTestSupport test_support = BlinkFuzzerTestSupport(); |
auto buffer = SharedBuffer::Create(data, size); |
// TODO (scroggo): Also test ImageDecoder::AlphaNotPremultiplied? |
auto decoder = CreateDecoder(ImageDecoder::kAlphaPremultiplied); |
@@ -58,8 +59,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; |
-} |