summaryrefslogtreecommitdiff
path: root/Meta/Lagom/Fuzzers/FuzzTTF.cpp
blob: f231f437701ee764c9ff194b577542010cfdd0ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/*
 * Copyright (c) 2021, the SerenityOS developers.
 *
 * SPDX-License-Identifier: BSD-2-Clause
 */

#include <LibGfx/Font/TrueType/Font.h>
#include <stddef.h>
#include <stdint.h>

extern "C" int LLVMFuzzerTestOneInput(u8 const* data, size_t size)
{
    (void)TTF::Font::try_load_from_externally_owned_memory({ data, size });
    return 0;
}