blob: 75e7939dacb0153224630dc74a4a92e7a7197f4b [file] [log] [blame]
Elliott Hughesf66460b2019-10-22 11:44:50 -07001// SPDX-License-Identifier: Apache-2.0
2
3#include <stddef.h>
4#include <stdint.h>
5
6#include <ziparchive/zip_archive.h>
7
8extern "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}