/*

Copyright (c) 2020-2021, Arvid Norberg
Copyright (c) 2021, Alden Torres
All rights reserved.

You may use, distribute and modify this code under the terms of the BSD license,
see LICENSE file.
*/

#include "libtorrent/aux_/parse_url.hpp"
#include "libtorrent/string_view.hpp"

#include <cstdint>

extern "C" int LLVMFuzzerTestOneInput(std::uint8_t const* data, size_t size)
{
    lt::aux::is_idna(lt::string_view(reinterpret_cast<char const*>(data), size));
    return 0;
}
