Avi Drissman | e4622aa | 2022-09-08 20:36:06 | [diff] [blame] | 1 | // Copyright 2017 The Chromium Authors |
Charles Harrison | 45a9833 | 2017-10-20 03:39:27 | [diff] [blame] | 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #include<string> |
Helmut Januschka | 0fc785b | 2024-04-17 21:13:36 | [diff] [blame] | 6 | #include<string_view> |
Charles Harrison | 45a9833 | 2017-10-20 03:39:27 | [diff] [blame] | 7 | |
| 8 | #include"base/base64.h" |
Charles Harrison | 45a9833 | 2017-10-20 03:39:27 | [diff] [blame] | 9 | |
| 10 | extern"C"intLLVMFuzzerTestOneInput(constuint8_t* data,size_t size){ |
| 11 | std::string decode_output; |
Helmut Januschka | 0fc785b | 2024-04-17 21:13:36 | [diff] [blame] | 12 | std::string_view data_piece(reinterpret_cast<constchar*>(data), size); |
Charles Harrison | 45a9833 | 2017-10-20 03:39:27 | [diff] [blame] | 13 | base::Base64Decode(data_piece,&decode_output); |
| 14 | return0; |
| 15 | } |