| Elliott Hughes | f66460b | 2019-10-22 11:44:50 -0700 | [diff] [blame] | 1 | // SPDX-License-Identifier: Apache-2.0 |
| 2 | |||||
| 3 | #include <stddef.h> | ||||
| 4 | #include <stdint.h> | ||||
| 5 | |||||
| 6 | #include <ziparchive/zip_archive.h> | ||||
| 7 | |||||
| 8 | extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) { | ||||
| 9 | ZipArchiveHandle handle = nullptr; | ||||
| 10 | OpenArchiveFromMemory(data, size, "fuzz", &handle); | ||||
| 11 | CloseArchive(handle); | ||||
| 12 | return 0; | ||||
| 13 | } | ||||