Line | Count | Source |
1 | /* | |
2 | * Copyright (c) 2020, the SerenityOS developers. | |
3 | * | |
4 | * SPDX-License-Identifier: BSD-2-Clause | |
5 | */ | |
6 | ||
7 | #include <LibGfx/PGMLoader.h> | |
8 | #include <stddef.h> | |
9 | #include <stdint.h> | |
10 | ||
11 | extern "C" int LLVMFuzzerTestOneInput(uint8_t const* data, size_t size) | |
12 | 1.21k | { |
13 | 1.21k | Gfx::PGMImageDecoderPlugin decoder(data, size); |
14 | 1.21k | (void)decoder.frame(0); |
15 | 1.21k | return 0; |
16 | 1.21k | } |