blob: 6fd9e630644a1a661f532ec842df06c9d3a19fb9 [file] [log] [blame]
// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/base/clipboard/url_file_parser.h"
#include <stdint.h>
#include <string_view>
// Entry point for LibFuzzer.
extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
std::string_view data_piece(reinterpret_cast<const char*>(data), size);
std::string url =
ui::clipboard_util::internal::ExtractURLFromURLFileContents(data_piece);
return 0;
}