mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-09 10:04:41 +00:00
20 lines
445 B
C++
20 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;
|
|
}
|