Coverage Report

Created: 2025-11-16 09:57

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/libreoffice/vcl/workben/sftfuzzer.cxx
Line
Count
Source
1
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2
/*
3
 * This file is part of the LibreOffice project.
4
 *
5
 * This Source Code Form is subject to the terms of the Mozilla Public
6
 * License, v. 2.0. If a copy of the MPL was not distributed with this
7
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8
 */
9
10
#include <fontsubset.hxx>
11
#include "commonfuzzer.hxx"
12
13
#include <config_features.h>
14
#include <osl/detail/component-mapping.h>
15
16
const lib_to_factory_mapping* lo_get_factory_map(void)
17
0
{
18
0
    static lib_to_factory_mapping map[] = { { 0, 0 } };
19
20
0
    return map;
21
0
}
22
23
const lib_to_constructor_mapping* lo_get_constructor_map(void)
24
309k
{
25
309k
    static lib_to_constructor_mapping map[] = { { 0, 0 } };
26
27
309k
    return map;
28
309k
}
29
30
0
extern "C" void* lo_get_custom_widget_func(const char*) { return nullptr; }
31
32
extern "C" int LLVMFuzzerInitialize(int* argc, char*** argv)
33
94
{
34
94
    TypicalFuzzerInitialize(argc, argv);
35
94
    return 0;
36
94
}
37
38
extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size)
39
410k
{
40
410k
    return TestFontSubset(data, size);
41
410k
}
42
43
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */