• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // SPDX-License-Identifier: Apache-2.0
2 
3 #include <stddef.h>
4 #include <stdint.h>
5 
6 #include <ziparchive/zip_archive.h>
7 
LLVMFuzzerTestOneInput(const uint8_t * data,size_t size)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 }
14