summaryrefslogtreecommitdiff
path: root/chromium/net/http/http_security_headers_hpkp_fuzzer.cc
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2019-02-13 15:05:36 +0100
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2019-02-14 10:33:47 +0000
commite684a3455bcc29a6e3e66a004e352dea4e1141e7 (patch)
treed55b4003bde34d7d05f558f02cfd82b2a66a7aac /chromium/net/http/http_security_headers_hpkp_fuzzer.cc
parent2b94bfe47ccb6c08047959d1c26e392919550e86 (diff)
downloadqtwebengine-chromium-e684a3455bcc29a6e3e66a004e352dea4e1141e7.tar.gz
BASELINE: Update Chromium to 72.0.3626.110 and Ninja to 1.9.0
Change-Id: Ic57220b00ecc929a893c91f5cc552f5d3e99e922 Reviewed-by: Michael BrĂ¼ning <michael.bruning@qt.io>
Diffstat (limited to 'chromium/net/http/http_security_headers_hpkp_fuzzer.cc')
-rw-r--r--chromium/net/http/http_security_headers_hpkp_fuzzer.cc31
1 files changed, 0 insertions, 31 deletions
diff --git a/chromium/net/http/http_security_headers_hpkp_fuzzer.cc b/chromium/net/http/http_security_headers_hpkp_fuzzer.cc
deleted file mode 100644
index cc1b33609c9..00000000000
--- a/chromium/net/http/http_security_headers_hpkp_fuzzer.cc
+++ /dev/null
@@ -1,31 +0,0 @@
-// Copyright 2016 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/base/hash_value.h"
-#include "net/http/http_security_headers.h"
-#include "net/ssl/ssl_info.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 include_subdomains;
- net::HashValueVector spki_hashes;
- GURL report_uri;
-
- net::HashValue hash;
- hash.FromString("sha256/1111111111111111111111111111111111111111111=");
-
- net::SSLInfo ssl_info;
- ssl_info.public_key_hashes.push_back(hash);
-
- net::ParseHPKPHeader(input, ssl_info.public_key_hashes, &max_age,
- &include_subdomains, &spki_hashes, &report_uri);
- return 0;
-}