Coverage Report

Created: 2026-07-10 11:04

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/libreoffice/vcl/workben/fodsfuzzer.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 <tools/stream.hxx>
11
#include <vcl/FilterConfigItem.hxx>
12
#include "commonfuzzer.hxx"
13
14
extern "C" void* ScCreateDialogFactory()
15
0
{
16
0
    return nullptr;
17
0
}
18
19
extern "C" bool TestImportFODS(SvStream &rStream);
20
21
extern "C" int LLVMFuzzerInitialize(int *argc, char ***argv)
22
92
{
23
92
    TypicalFuzzerInitialize(argc, argv);
24
92
    return 0;
25
92
}
26
27
extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size)
28
326k
{
29
326k
    SvMemoryStream aStream(const_cast<uint8_t*>(data), size, StreamMode::READ);
30
326k
    (void)TestImportFODS(aStream);
31
326k
    return 0;
32
326k
}
33
34
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */