blob: 205d9f5ace22aa4da7c0af77c0e446e803fa7455 [file] [log] [blame]
// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/omnibox/browser/omnibox_text_util.h"
#include <stddef.h>
#include <stdint.h>
#include <string>
extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
// This fuzzer creates a random UTF16 string to represent clipboard contents.
std::u16string s(reinterpret_cast<const std::u16string::value_type*>(data),
size / sizeof(std::u16string::value_type));
omnibox::SanitizeTextForPaste(s);
return 0;
}