serenity/Meta/Lagom/Fuzzers/FuzzDeflateCompression.cpp

15 lines
328 B
C++
Raw Normal View History

/*
* Copyright (c) 2021, the SerenityOS developers.
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <LibCompress/Deflate.h>
#include <stdio.h>
2022-04-01 20:58:27 +03:00
extern "C" int LLVMFuzzerTestOneInput(uint8_t const* data, size_t size)
{
(void)Compress::DeflateCompressor::compress_all(ReadonlyBytes { data, size });
return 0;
}