blob: 0f61575cfb682904da331c7efa468557af247958 [file] [log] [blame]
// Copyright 2019 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 <cstddef>
#include <cstdint>
#include "modp_b64.h"
extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
// Create a buffer to store the output.
std::string buffer;
modp_b64_encode(&buffer[0], (const char *)data, size);
return 0;