1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
7 #include "base/base64.h"
8 #include "base/strings/string_piece.h"
10 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
11 std::string decode_output;
12 base::StringPiece data_piece(reinterpret_cast<const char*>(data), size);
13 base::Base64Decode(data_piece, &decode_output);