summaryrefslogtreecommitdiff
path: root/chromium/net/http/http_security_headers_expect_ct_fuzzer.cc
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2017-07-17 13:57:45 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2017-07-19 13:44:40 +0000
commit6ec7b8da05d21a3878bd21c691b41e675d74bb1c (patch)
treeb87f250bc19413750b9bb9cdbf2da20ef5014820 /chromium/net/http/http_security_headers_expect_ct_fuzzer.cc
parentec02ee4181c49b61fce1c8fb99292dbb8139cc90 (diff)
downloadqtwebengine-chromium-6ec7b8da05d21a3878bd21c691b41e675d74bb1c.tar.gz
BASELINE: Update Chromium to 60.0.3112.70
Change-Id: I9911c2280a014d4632f254857876a395d4baed2d Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'chromium/net/http/http_security_headers_expect_ct_fuzzer.cc')
-rw-r--r--chromium/net/http/http_security_headers_expect_ct_fuzzer.cc21
1 files changed, 21 insertions, 0 deletions
diff --git a/chromium/net/http/http_security_headers_expect_ct_fuzzer.cc b/chromium/net/http/http_security_headers_expect_ct_fuzzer.cc
new file mode 100644
index 00000000000..4eade8be796
--- /dev/null
+++ b/chromium/net/http/http_security_headers_expect_ct_fuzzer.cc
@@ -0,0 +1,21 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include <stddef.h>
+#include <stdint.h>
+#include <string>
+
+#include "base/time/time.h"
+#include "net/http/http_security_headers.h"
+#include "url/gurl.h"
+
+extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
+ std::string input(data, data + size);
+ base::TimeDelta max_age;
+ bool enforce;
+ GURL report_uri;
+
+ net::ParseExpectCTHeader(input, &max_age, &enforce, &report_uri);
+ return 0;
+}