2021-03-03 20:17:34 -03:00
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2021, the SerenityOS developers.
|
|
|
|
|
*
|
2021-04-22 05:24:48 -03:00
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
2021-03-03 20:17:34 -03:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#include <LibCompress/Deflate.h>
|
|
|
|
|
#include <stdio.h>
|
|
|
|
|
|
|
|
|
|
extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size)
|
|
|
|
|
{
|
2021-03-13 20:45:22 -03:00
|
|
|
auto result = Compress::DeflateCompressor::compress_all(ReadonlyBytes { data, size });
|
2021-03-03 20:17:34 -03:00
|
|
|
return result.has_value();
|
|
|
|
|
}
|