Ryan Harrison | b07cb63 | 2020-07-30 21:24:29 +0000 | [diff] [blame] | 1 | // Copyright 2020 The Tint Authors. |
| 2 | // |
| 3 | // Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | // you may not use this file except in compliance with the License. |
| 5 | // You may obtain a copy of the License at |
| 6 | // |
| 7 | // http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | // |
| 9 | // Unless required by applicable law or agreed to in writing, software |
| 10 | // distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | // See the License for the specific language governing permissions and |
| 13 | // limitations under the License. |
| 14 | |
| 15 | #include <vector> |
| 16 | |
Ryan Harrison | 0b5d1dd | 2021-01-12 16:23:48 +0000 | [diff] [blame] | 17 | #include "fuzzers/tint_common_fuzzer.h" |
| 18 | |
| 19 | namespace tint { |
| 20 | namespace fuzzers { |
Ryan Harrison | 39545b7 | 2021-01-07 20:33:22 +0000 | [diff] [blame] | 21 | |
Ryan Harrison | b07cb63 | 2020-07-30 21:24:29 +0000 | [diff] [blame] | 22 | extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) { |
Ryan Harrison | 0b5d1dd | 2021-01-12 16:23:48 +0000 | [diff] [blame] | 23 | tint::fuzzers::CommonFuzzer fuzzer(InputFormat::kSpv, OutputFormat::kNone); |
| 24 | return fuzzer.Run(data, size); |
Ryan Harrison | 1d9935c | 2021-01-11 15:22:19 +0000 | [diff] [blame] | 25 | } |
Ryan Harrison | 0b5d1dd | 2021-01-12 16:23:48 +0000 | [diff] [blame] | 26 | |
| 27 | } // namespace fuzzers |
| 28 | } // namespace tint |