/* * Copyright (c) 2021, Luke Wilde * * SPDX-License-Identifier: BSD-2-Clause */ #include #include #include extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) { auto flac_data = ByteBuffer::copy(data, size).release_value(); auto flac = make(flac_data); if (!flac->sniff()) return 1; while (flac->get_more_samples()) ; return 0; }