blob: c75179fde43e18fb724be249b03a2c507b0325b8 [file] [log] [blame]
// Copyright 2018 The Chromium OS 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 <string>
#include "shill/net/byte_string.h"
#include "shill/net/nl80211_message.h"
#include <base/logging.h>
namespace shill {
namespace {
extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
// Turn off logging.
logging::SetMinLogLevel(logging::LOGGING_FATAL);
Nl80211Frame frame(ByteString(data, size));
std::string output = frame.ToString();
return 0;
}
} // namespace
} // namespace shill