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

Unified Diff: third_party/WebKit/Source/platform/PngFuzzer.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/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;
-}

Powered by Google App Engine
This is Rietveld 408576698