mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00:00
22 lines
468 B
C++
22 lines
468 B
C++
/*
|
|
* Copyright (c) 2021, the SerenityOS developers.
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#include <LibArchive/Zip.h>
|
|
#include <stddef.h>
|
|
#include <stdint.h>
|
|
|
|
extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size)
|
|
{
|
|
auto zip_file = Archive::Zip::try_create({ data, size });
|
|
if (!zip_file.has_value())
|
|
return 0;
|
|
|
|
zip_file->for_each_member([](auto&) {
|
|
return IterationDecision::Continue;
|
|
});
|
|
|
|
return 0;
|
|
}
|