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

Unified Diff: third_party/WebKit/Source/core/css/StyleSheetContentsFuzzer.cpp

Issue 2616093003: Make CSSParserContext be garbage collected. (Closed)
Patch Set: fix fuzzer compile again Created 3 years, 11 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 236089b27fc67deb56983e87be210ceac8ccc5b1..38d8ccb8a78d22419cde89241039935999aa5a05 100644
--- a/third_party/WebKit/Source/core/css/StyleSheetContentsFuzzer.cpp
+++ b/third_party/WebKit/Source/core/css/StyleSheetContentsFuzzer.cpp
@@ -8,7 +8,8 @@
#include "wtf/text/WTFString.h"
extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
- blink::CSSParserContext context(blink::HTMLStandardMode, nullptr);
+ blink::CSSParserContext* context =
+ blink::CSSParserContext::create(blink::HTMLStandardMode);
blink::StyleSheetContents* styleSheet =
blink::StyleSheetContents::create(context);
styleSheet->parseString(String::fromUTF8WithLatin1Fallback(

Powered by Google App Engine
This is Rietveld 408576698