Line | Count | Source |
1 | /* | |
2 | * Copyright (c) 2021, the SerenityOS developers. | |
3 | * | |
4 | * SPDX-License-Identifier: BSD-2-Clause | |
5 | */ | |
6 | ||
7 | #include <LibCompress/Deflate.h> | |
8 | #include <stdio.h> | |
9 | ||
10 | extern "C" int LLVMFuzzerTestOneInput(uint8_t const* data, size_t size) | |
11 | 2.06k | { |
12 | 2.06k | auto result = Compress::DeflateCompressor::compress_all(ReadonlyBytes { data, size }); |
13 | 2.06k | return result.has_value(); |
14 | 2.06k | } |