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

Unified Diff: components/policy/core/common/preg_parser_fuzzer.cc

Issue 2860973002: Allow PolicyLoadStatusSample to override reporting method (Closed)
Patch Set: Changed callback implementation to class hierarchy implementation. 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: components/policy/core/common/preg_parser_fuzzer.cc
diff --git a/components/policy/core/common/preg_parser_fuzzer.cc b/components/policy/core/common/preg_parser_fuzzer.cc
index aff354471256b171a80f9513a4577a5d11edc1c5..3e448acd413d786d555cd8f863e91d3b6d6b2dd0 100644
--- a/components/policy/core/common/preg_parser_fuzzer.cc
+++ b/components/policy/core/common/preg_parser_fuzzer.cc
@@ -34,8 +34,9 @@ Environment* env = new Environment();
// Entry point for LibFuzzer.
extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
+ // Note: Don't use PolicyLoadStatusAutoSubmitter here, it leaks!
+ PolicyLoadStatusSampler status;
RegistryDict dict;
- PolicyLoadStatus status;
ReadDataInternal(data, size, env->root, &dict, &status, "data");
return 0;
}

Powered by Google App Engine
This is Rietveld 408576698