mirror of
https://github.com/RGBCube/serenity
synced 2025-06-02 18:08:15 +00:00
19 lines
445 B
C++
19 lines
445 B
C++
/*
|
|
* Copyright (c) 2022, the SerenityOS developers.
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#include <AK/MemoryStream.h>
|
|
#include <LibCompress/Brotli.h>
|
|
#include <stdio.h>
|
|
|
|
extern "C" int LLVMFuzzerTestOneInput(uint8_t const* data, size_t size)
|
|
{
|
|
FixedMemoryStream bufstream { { data, size } };
|
|
|
|
auto brotli_stream = Compress::BrotliDecompressionStream { bufstream };
|
|
|
|
(void)brotli_stream.read_until_eof();
|
|
return 0;
|
|
}
|