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

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

Issue 2860973002: Allow PolicyLoadStatusSample to override reporting method (Closed)
Patch Set: Cleanups and class rename. 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
« no previous file with comments | « components/policy/core/common/preg_parser.cc ('k') | components/policy/core/common/preg_parser_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..003031f7199565259009a4832cfd2d3184e3b208 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 PolicyLoadStatusUmaReporter here, it leaks!
+ PolicyLoadStatusSampler status;
RegistryDict dict;
- PolicyLoadStatus status;
ReadDataInternal(data, size, env->root, &dict, &status, "data");
return 0;
}
« no previous file with comments | « components/policy/core/common/preg_parser.cc ('k') | components/policy/core/common/preg_parser_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698