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

Unified Diff: net/base/fuzzed_data_provider.h

Issue 1919013003: Add fuzzer to test Fuzz URLRequestDataJob (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@url_request_fuzzer
Patch Set: 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/url_request/url_request_data_job_fuzzer.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 bd8ddbebb21a6c773e45cf76259ffcc931b07704..47a45061cdf248b9a2da0bd5e94fb1399f04ba6b 100644
--- a/net/base/fuzzed_data_provider.h
+++ b/net/base/fuzzed_data_provider.h
@@ -51,6 +51,9 @@ class FuzzedDataProvider {
// ConsumeValueInRange(0, 0xFFFF).
uint16_t ConsumeUint16();
+ // Reports the remaining bytes available for fuzzed input.
+ size_t remaining_bytes() { return remaining_data_.length(); }
+
private:
base::StringPiece remaining_data_;
« no previous file with comments | « net/BUILD.gn ('k') | net/url_request/url_request_data_job_fuzzer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698