blob: 79e5b48241ead7f8ff10b8e126d6c6f863e13ee0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
// Copyright 2021 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 "base/strings/string_piece.h"
#include "ui/base/clipboard/file_info.h"
namespace ui {
// Entry point for LibFuzzer.
extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
base::StringPiece data_piece(reinterpret_cast<const char*>(data), size);
std::vector<ui::FileInfo> files = ui::URIListToFileInfos(data_piece);
return 0;
}
} // namespace ui
|