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

Unified Diff: net/base/fuzzed_data_provider.h

Issue 1929703003: fuzzers for VerifyNameMatch and VerifyNameInSubtree (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: use FuzzedDataProvider Created 4 years, 8 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 | « net/BUILD.gn ('k') | net/base/fuzzed_data_provider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/fuzzed_data_provider.h
diff --git a/net/base/fuzzed_data_provider.h b/net/base/fuzzed_data_provider.h
index d892c30fbecd737553f73dd7ef92fa89da14d063..ea99bc728526da5f9d82eefd7e7d848b20577660 100644
--- a/net/base/fuzzed_data_provider.h
+++ b/net/base/fuzzed_data_provider.h
@@ -28,6 +28,11 @@ class FuzzedDataProvider {
// must not be used after the FuzzedDataProvider is destroyed.
base::StringPiece ConsumeBytes(size_t bytes);
+ // Returns a StringPiece containing all remaining bytes of the input data.
+ // The data pointed at by the returned StringPiece must not be used after the
+ // FuzzedDataProvider is destroyed.
+ base::StringPiece ConsumeRemainingBytes();
+
// Returns a value from |min| to |max| inclusive, extracting a value from the
// input data in some unspecified manner. Value may not be uniformly
// distributed in the given range. If there's no input data left, always
« no previous file with comments | « net/BUILD.gn ('k') | net/base/fuzzed_data_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698