Coverage Report

Created: 2026-06-30 11:14

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/libreoffice/vcl/workben/commonfuzzer.hxx
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 <sal/main.h>
11
#include <tools/extendapplicationenvironment.hxx>
12
13
#include <cppuhelper/bootstrap.hxx>
14
#include <comphelper/configuration.hxx>
15
#include <comphelper/processfactory.hxx>
16
17
#include <com/sun/star/lang/XMultiServiceFactory.hpp>
18
#include <com/sun/star/uno/XComponentContext.hpp>
19
#include <rtl/bootstrap.hxx>
20
#include <rtl/strbuf.hxx>
21
#include <osl/file.hxx>
22
#include <osl/process.h>
23
#include <vcl/graph.hxx>
24
#include <vcl/filter/ImportOutput.hxx>
25
#include <vcl/print.hxx>
26
#include <vcl/svapp.hxx>
27
#include <vcl/wmf.hxx>
28
#include <unistd.h>
29
#include <stdlib.h>
30
#include "headless/svpgdi.hxx"
31
#include "unx/fontmanager.hxx"
32
#include "unx/glyphcache.hxx"
33
34
using namespace ::com::sun::star::uno;
35
using namespace ::com::sun::star::lang;
36
using namespace cppu;
37
38
namespace
39
{
40
    OUString getExecutableDir()
41
106
    {
42
106
        OUString uri;
43
106
        if (osl_getExecutableFile(&uri.pData) != osl_Process_E_None) {
44
0
            abort();
45
0
        }
46
106
        sal_Int32 lastDirSeparatorPos = uri.lastIndexOf('/');
47
106
        if (lastDirSeparatorPos >= 0) {
48
106
            uri = uri.copy(0, lastDirSeparatorPos + 1);
49
106
        }
50
106
        return uri;
51
106
    }
xpmfuzzer.cxx:(anonymous namespace)::getExecutableDir()
Line
Count
Source
41
2
    {
42
2
        OUString uri;
43
2
        if (osl_getExecutableFile(&uri.pData) != osl_Process_E_None) {
44
0
            abort();
45
0
        }
46
2
        sal_Int32 lastDirSeparatorPos = uri.lastIndexOf('/');
47
2
        if (lastDirSeparatorPos >= 0) {
48
2
            uri = uri.copy(0, lastDirSeparatorPos + 1);
49
2
        }
50
2
        return uri;
51
2
    }
xlsfuzzer.cxx:(anonymous namespace)::getExecutableDir()
Line
Count
Source
41
2
    {
42
2
        OUString uri;
43
2
        if (osl_getExecutableFile(&uri.pData) != osl_Process_E_None) {
44
0
            abort();
45
0
        }
46
2
        sal_Int32 lastDirSeparatorPos = uri.lastIndexOf('/');
47
2
        if (lastDirSeparatorPos >= 0) {
48
2
            uri = uri.copy(0, lastDirSeparatorPos + 1);
49
2
        }
50
2
        return uri;
51
2
    }
schtmlfuzzer.cxx:(anonymous namespace)::getExecutableDir()
Line
Count
Source
41
2
    {
42
2
        OUString uri;
43
2
        if (osl_getExecutableFile(&uri.pData) != osl_Process_E_None) {
44
0
            abort();
45
0
        }
46
2
        sal_Int32 lastDirSeparatorPos = uri.lastIndexOf('/');
47
2
        if (lastDirSeparatorPos >= 0) {
48
2
            uri = uri.copy(0, lastDirSeparatorPos + 1);
49
2
        }
50
2
        return uri;
51
2
    }
rtffuzzer.cxx:(anonymous namespace)::getExecutableDir()
Line
Count
Source
41
2
    {
42
2
        OUString uri;
43
2
        if (osl_getExecutableFile(&uri.pData) != osl_Process_E_None) {
44
0
            abort();
45
0
        }
46
2
        sal_Int32 lastDirSeparatorPos = uri.lastIndexOf('/');
47
2
        if (lastDirSeparatorPos >= 0) {
48
2
            uri = uri.copy(0, lastDirSeparatorPos + 1);
49
2
        }
50
2
        return uri;
51
2
    }
rtf2pdffuzzer.cxx:(anonymous namespace)::getExecutableDir()
Line
Count
Source
41
2
    {
42
2
        OUString uri;
43
2
        if (osl_getExecutableFile(&uri.pData) != osl_Process_E_None) {
44
0
            abort();
45
0
        }
46
2
        sal_Int32 lastDirSeparatorPos = uri.lastIndexOf('/');
47
2
        if (lastDirSeparatorPos >= 0) {
48
2
            uri = uri.copy(0, lastDirSeparatorPos + 1);
49
2
        }
50
2
        return uri;
51
2
    }
ww8fuzzer.cxx:(anonymous namespace)::getExecutableDir()
Line
Count
Source
41
2
    {
42
2
        OUString uri;
43
2
        if (osl_getExecutableFile(&uri.pData) != osl_Process_E_None) {
44
0
            abort();
45
0
        }
46
2
        sal_Int32 lastDirSeparatorPos = uri.lastIndexOf('/');
47
2
        if (lastDirSeparatorPos >= 0) {
48
2
            uri = uri.copy(0, lastDirSeparatorPos + 1);
49
2
        }
50
2
        return uri;
51
2
    }
wmffuzzer.cxx:(anonymous namespace)::getExecutableDir()
Line
Count
Source
41
2
    {
42
2
        OUString uri;
43
2
        if (osl_getExecutableFile(&uri.pData) != osl_Process_E_None) {
44
0
            abort();
45
0
        }
46
2
        sal_Int32 lastDirSeparatorPos = uri.lastIndexOf('/');
47
2
        if (lastDirSeparatorPos >= 0) {
48
2
            uri = uri.copy(0, lastDirSeparatorPos + 1);
49
2
        }
50
2
        return uri;
51
2
    }
pdf2fodgfuzzer.cxx:(anonymous namespace)::getExecutableDir()
Line
Count
Source
41
2
    {
42
2
        OUString uri;
43
2
        if (osl_getExecutableFile(&uri.pData) != osl_Process_E_None) {
44
0
            abort();
45
0
        }
46
2
        sal_Int32 lastDirSeparatorPos = uri.lastIndexOf('/');
47
2
        if (lastDirSeparatorPos >= 0) {
48
2
            uri = uri.copy(0, lastDirSeparatorPos + 1);
49
2
        }
50
2
        return uri;
51
2
    }
giffuzzer.cxx:(anonymous namespace)::getExecutableDir()
Line
Count
Source
41
1
    {
42
1
        OUString uri;
43
1
        if (osl_getExecutableFile(&uri.pData) != osl_Process_E_None) {
44
0
            abort();
45
0
        }
46
1
        sal_Int32 lastDirSeparatorPos = uri.lastIndexOf('/');
47
1
        if (lastDirSeparatorPos >= 0) {
48
1
            uri = uri.copy(0, lastDirSeparatorPos + 1);
49
1
        }
50
1
        return uri;
51
1
    }
fodt2pdffuzzer.cxx:(anonymous namespace)::getExecutableDir()
Line
Count
Source
41
2
    {
42
2
        OUString uri;
43
2
        if (osl_getExecutableFile(&uri.pData) != osl_Process_E_None) {
44
0
            abort();
45
0
        }
46
2
        sal_Int32 lastDirSeparatorPos = uri.lastIndexOf('/');
47
2
        if (lastDirSeparatorPos >= 0) {
48
2
            uri = uri.copy(0, lastDirSeparatorPos + 1);
49
2
        }
50
2
        return uri;
51
2
    }
pptxfuzzer.cxx:(anonymous namespace)::getExecutableDir()
Line
Count
Source
41
2
    {
42
2
        OUString uri;
43
2
        if (osl_getExecutableFile(&uri.pData) != osl_Process_E_None) {
44
0
            abort();
45
0
        }
46
2
        sal_Int32 lastDirSeparatorPos = uri.lastIndexOf('/');
47
2
        if (lastDirSeparatorPos >= 0) {
48
2
            uri = uri.copy(0, lastDirSeparatorPos + 1);
49
2
        }
50
2
        return uri;
51
2
    }
dbffuzzer.cxx:(anonymous namespace)::getExecutableDir()
Line
Count
Source
41
2
    {
42
2
        OUString uri;
43
2
        if (osl_getExecutableFile(&uri.pData) != osl_Process_E_None) {
44
0
            abort();
45
0
        }
46
2
        sal_Int32 lastDirSeparatorPos = uri.lastIndexOf('/');
47
2
        if (lastDirSeparatorPos >= 0) {
48
2
            uri = uri.copy(0, lastDirSeparatorPos + 1);
49
2
        }
50
2
        return uri;
51
2
    }
scrtffuzzer.cxx:(anonymous namespace)::getExecutableDir()
Line
Count
Source
41
2
    {
42
2
        OUString uri;
43
2
        if (osl_getExecutableFile(&uri.pData) != osl_Process_E_None) {
44
0
            abort();
45
0
        }
46
2
        sal_Int32 lastDirSeparatorPos = uri.lastIndexOf('/');
47
2
        if (lastDirSeparatorPos >= 0) {
48
2
            uri = uri.copy(0, lastDirSeparatorPos + 1);
49
2
        }
50
2
        return uri;
51
2
    }
pctfuzzer.cxx:(anonymous namespace)::getExecutableDir()
Line
Count
Source
41
2
    {
42
2
        OUString uri;
43
2
        if (osl_getExecutableFile(&uri.pData) != osl_Process_E_None) {
44
0
            abort();
45
0
        }
46
2
        sal_Int32 lastDirSeparatorPos = uri.lastIndexOf('/');
47
2
        if (lastDirSeparatorPos >= 0) {
48
2
            uri = uri.copy(0, lastDirSeparatorPos + 1);
49
2
        }
50
2
        return uri;
51
2
    }
lwpfuzzer.cxx:(anonymous namespace)::getExecutableDir()
Line
Count
Source
41
2
    {
42
2
        OUString uri;
43
2
        if (osl_getExecutableFile(&uri.pData) != osl_Process_E_None) {
44
0
            abort();
45
0
        }
46
2
        sal_Int32 lastDirSeparatorPos = uri.lastIndexOf('/');
47
2
        if (lastDirSeparatorPos >= 0) {
48
2
            uri = uri.copy(0, lastDirSeparatorPos + 1);
49
2
        }
50
2
        return uri;
51
2
    }
zipfuzzer.cxx:(anonymous namespace)::getExecutableDir()
Line
Count
Source
41
2
    {
42
2
        OUString uri;
43
2
        if (osl_getExecutableFile(&uri.pData) != osl_Process_E_None) {
44
0
            abort();
45
0
        }
46
2
        sal_Int32 lastDirSeparatorPos = uri.lastIndexOf('/');
47
2
        if (lastDirSeparatorPos >= 0) {
48
2
            uri = uri.copy(0, lastDirSeparatorPos + 1);
49
2
        }
50
2
        return uri;
51
2
    }
xbmfuzzer.cxx:(anonymous namespace)::getExecutableDir()
Line
Count
Source
41
2
    {
42
2
        OUString uri;
43
2
        if (osl_getExecutableFile(&uri.pData) != osl_Process_E_None) {
44
0
            abort();
45
0
        }
46
2
        sal_Int32 lastDirSeparatorPos = uri.lastIndexOf('/');
47
2
        if (lastDirSeparatorPos >= 0) {
48
2
            uri = uri.copy(0, lastDirSeparatorPos + 1);
49
2
        }
50
2
        return uri;
51
2
    }
cgmfuzzer.cxx:(anonymous namespace)::getExecutableDir()
Line
Count
Source
41
1
    {
42
1
        OUString uri;
43
1
        if (osl_getExecutableFile(&uri.pData) != osl_Process_E_None) {
44
0
            abort();
45
0
        }
46
1
        sal_Int32 lastDirSeparatorPos = uri.lastIndexOf('/');
47
1
        if (lastDirSeparatorPos >= 0) {
48
1
            uri = uri.copy(0, lastDirSeparatorPos + 1);
49
1
        }
50
1
        return uri;
51
1
    }
htmlfuzzer.cxx:(anonymous namespace)::getExecutableDir()
Line
Count
Source
41
2
    {
42
2
        OUString uri;
43
2
        if (osl_getExecutableFile(&uri.pData) != osl_Process_E_None) {
44
0
            abort();
45
0
        }
46
2
        sal_Int32 lastDirSeparatorPos = uri.lastIndexOf('/');
47
2
        if (lastDirSeparatorPos >= 0) {
48
2
            uri = uri.copy(0, lastDirSeparatorPos + 1);
49
2
        }
50
2
        return uri;
51
2
    }
602fuzzer.cxx:(anonymous namespace)::getExecutableDir()
Line
Count
Source
41
2
    {
42
2
        OUString uri;
43
2
        if (osl_getExecutableFile(&uri.pData) != osl_Process_E_None) {
44
0
            abort();
45
0
        }
46
2
        sal_Int32 lastDirSeparatorPos = uri.lastIndexOf('/');
47
2
        if (lastDirSeparatorPos >= 0) {
48
2
            uri = uri.copy(0, lastDirSeparatorPos + 1);
49
2
        }
50
2
        return uri;
51
2
    }
pcxfuzzer.cxx:(anonymous namespace)::getExecutableDir()
Line
Count
Source
41
2
    {
42
2
        OUString uri;
43
2
        if (osl_getExecutableFile(&uri.pData) != osl_Process_E_None) {
44
0
            abort();
45
0
        }
46
2
        sal_Int32 lastDirSeparatorPos = uri.lastIndexOf('/');
47
2
        if (lastDirSeparatorPos >= 0) {
48
2
            uri = uri.copy(0, lastDirSeparatorPos + 1);
49
2
        }
50
2
        return uri;
51
2
    }
sftfuzzer.cxx:(anonymous namespace)::getExecutableDir()
Line
Count
Source
41
2
    {
42
2
        OUString uri;
43
2
        if (osl_getExecutableFile(&uri.pData) != osl_Process_E_None) {
44
0
            abort();
45
0
        }
46
2
        sal_Int32 lastDirSeparatorPos = uri.lastIndexOf('/');
47
2
        if (lastDirSeparatorPos >= 0) {
48
2
            uri = uri.copy(0, lastDirSeparatorPos + 1);
49
2
        }
50
2
        return uri;
51
2
    }
eotfuzzer.cxx:(anonymous namespace)::getExecutableDir()
Line
Count
Source
41
2
    {
42
2
        OUString uri;
43
2
        if (osl_getExecutableFile(&uri.pData) != osl_Process_E_None) {
44
0
            abort();
45
0
        }
46
2
        sal_Int32 lastDirSeparatorPos = uri.lastIndexOf('/');
47
2
        if (lastDirSeparatorPos >= 0) {
48
2
            uri = uri.copy(0, lastDirSeparatorPos + 1);
49
2
        }
50
2
        return uri;
51
2
    }
wksfuzzer.cxx:(anonymous namespace)::getExecutableDir()
Line
Count
Source
41
2
    {
42
2
        OUString uri;
43
2
        if (osl_getExecutableFile(&uri.pData) != osl_Process_E_None) {
44
0
            abort();
45
0
        }
46
2
        sal_Int32 lastDirSeparatorPos = uri.lastIndexOf('/');
47
2
        if (lastDirSeparatorPos >= 0) {
48
2
            uri = uri.copy(0, lastDirSeparatorPos + 1);
49
2
        }
50
2
        return uri;
51
2
    }
pcdfuzzer.cxx:(anonymous namespace)::getExecutableDir()
Line
Count
Source
41
2
    {
42
2
        OUString uri;
43
2
        if (osl_getExecutableFile(&uri.pData) != osl_Process_E_None) {
44
0
            abort();
45
0
        }
46
2
        sal_Int32 lastDirSeparatorPos = uri.lastIndexOf('/');
47
2
        if (lastDirSeparatorPos >= 0) {
48
2
            uri = uri.copy(0, lastDirSeparatorPos + 1);
49
2
        }
50
2
        return uri;
51
2
    }
mmlfuzzer.cxx:(anonymous namespace)::getExecutableDir()
Line
Count
Source
41
2
    {
42
2
        OUString uri;
43
2
        if (osl_getExecutableFile(&uri.pData) != osl_Process_E_None) {
44
0
            abort();
45
0
        }
46
2
        sal_Int32 lastDirSeparatorPos = uri.lastIndexOf('/');
47
2
        if (lastDirSeparatorPos >= 0) {
48
2
            uri = uri.copy(0, lastDirSeparatorPos + 1);
49
2
        }
50
2
        return uri;
51
2
    }
ww2fuzzer.cxx:(anonymous namespace)::getExecutableDir()
Line
Count
Source
41
2
    {
42
2
        OUString uri;
43
2
        if (osl_getExecutableFile(&uri.pData) != osl_Process_E_None) {
44
0
            abort();
45
0
        }
46
2
        sal_Int32 lastDirSeparatorPos = uri.lastIndexOf('/');
47
2
        if (lastDirSeparatorPos >= 0) {
48
2
            uri = uri.copy(0, lastDirSeparatorPos + 1);
49
2
        }
50
2
        return uri;
51
2
    }
diffuzzer.cxx:(anonymous namespace)::getExecutableDir()
Line
Count
Source
41
2
    {
42
2
        OUString uri;
43
2
        if (osl_getExecutableFile(&uri.pData) != osl_Process_E_None) {
44
0
            abort();
45
0
        }
46
2
        sal_Int32 lastDirSeparatorPos = uri.lastIndexOf('/');
47
2
        if (lastDirSeparatorPos >= 0) {
48
2
            uri = uri.copy(0, lastDirSeparatorPos + 1);
49
2
        }
50
2
        return uri;
51
2
    }
ww6fuzzer.cxx:(anonymous namespace)::getExecutableDir()
Line
Count
Source
41
2
    {
42
2
        OUString uri;
43
2
        if (osl_getExecutableFile(&uri.pData) != osl_Process_E_None) {
44
0
            abort();
45
0
        }
46
2
        sal_Int32 lastDirSeparatorPos = uri.lastIndexOf('/');
47
2
        if (lastDirSeparatorPos >= 0) {
48
2
            uri = uri.copy(0, lastDirSeparatorPos + 1);
49
2
        }
50
2
        return uri;
51
2
    }
docxfuzzer.cxx:(anonymous namespace)::getExecutableDir()
Line
Count
Source
41
2
    {
42
2
        OUString uri;
43
2
        if (osl_getExecutableFile(&uri.pData) != osl_Process_E_None) {
44
0
            abort();
45
0
        }
46
2
        sal_Int32 lastDirSeparatorPos = uri.lastIndexOf('/');
47
2
        if (lastDirSeparatorPos >= 0) {
48
2
            uri = uri.copy(0, lastDirSeparatorPos + 1);
49
2
        }
50
2
        return uri;
51
2
    }
psdfuzzer.cxx:(anonymous namespace)::getExecutableDir()
Line
Count
Source
41
2
    {
42
2
        OUString uri;
43
2
        if (osl_getExecutableFile(&uri.pData) != osl_Process_E_None) {
44
0
            abort();
45
0
        }
46
2
        sal_Int32 lastDirSeparatorPos = uri.lastIndexOf('/');
47
2
        if (lastDirSeparatorPos >= 0) {
48
2
            uri = uri.copy(0, lastDirSeparatorPos + 1);
49
2
        }
50
2
        return uri;
51
2
    }
tiffuzzer.cxx:(anonymous namespace)::getExecutableDir()
Line
Count
Source
41
2
    {
42
2
        OUString uri;
43
2
        if (osl_getExecutableFile(&uri.pData) != osl_Process_E_None) {
44
0
            abort();
45
0
        }
46
2
        sal_Int32 lastDirSeparatorPos = uri.lastIndexOf('/');
47
2
        if (lastDirSeparatorPos >= 0) {
48
2
            uri = uri.copy(0, lastDirSeparatorPos + 1);
49
2
        }
50
2
        return uri;
51
2
    }
svgfuzzer.cxx:(anonymous namespace)::getExecutableDir()
Line
Count
Source
41
2
    {
42
2
        OUString uri;
43
2
        if (osl_getExecutableFile(&uri.pData) != osl_Process_E_None) {
44
0
            abort();
45
0
        }
46
2
        sal_Int32 lastDirSeparatorPos = uri.lastIndexOf('/');
47
2
        if (lastDirSeparatorPos >= 0) {
48
2
            uri = uri.copy(0, lastDirSeparatorPos + 1);
49
2
        }
50
2
        return uri;
51
2
    }
metfuzzer.cxx:(anonymous namespace)::getExecutableDir()
Line
Count
Source
41
2
    {
42
2
        OUString uri;
43
2
        if (osl_getExecutableFile(&uri.pData) != osl_Process_E_None) {
44
0
            abort();
45
0
        }
46
2
        sal_Int32 lastDirSeparatorPos = uri.lastIndexOf('/');
47
2
        if (lastDirSeparatorPos >= 0) {
48
2
            uri = uri.copy(0, lastDirSeparatorPos + 1);
49
2
        }
50
2
        return uri;
51
2
    }
epsfuzzer.cxx:(anonymous namespace)::getExecutableDir()
Line
Count
Source
41
2
    {
42
2
        OUString uri;
43
2
        if (osl_getExecutableFile(&uri.pData) != osl_Process_E_None) {
44
0
            abort();
45
0
        }
46
2
        sal_Int32 lastDirSeparatorPos = uri.lastIndexOf('/');
47
2
        if (lastDirSeparatorPos >= 0) {
48
2
            uri = uri.copy(0, lastDirSeparatorPos + 1);
49
2
        }
50
2
        return uri;
51
2
    }
fodpfuzzer.cxx:(anonymous namespace)::getExecutableDir()
Line
Count
Source
41
2
    {
42
2
        OUString uri;
43
2
        if (osl_getExecutableFile(&uri.pData) != osl_Process_E_None) {
44
0
            abort();
45
0
        }
46
2
        sal_Int32 lastDirSeparatorPos = uri.lastIndexOf('/');
47
2
        if (lastDirSeparatorPos >= 0) {
48
2
            uri = uri.copy(0, lastDirSeparatorPos + 1);
49
2
        }
50
2
        return uri;
51
2
    }
Unexecuted instantiation: mtpfuzzer.cxx:(anonymous namespace)::getExecutableDir()
slkfuzzer.cxx:(anonymous namespace)::getExecutableDir()
Line
Count
Source
41
2
    {
42
2
        OUString uri;
43
2
        if (osl_getExecutableFile(&uri.pData) != osl_Process_E_None) {
44
0
            abort();
45
0
        }
46
2
        sal_Int32 lastDirSeparatorPos = uri.lastIndexOf('/');
47
2
        if (lastDirSeparatorPos >= 0) {
48
2
            uri = uri.copy(0, lastDirSeparatorPos + 1);
49
2
        }
50
2
        return uri;
51
2
    }
webpfuzzer.cxx:(anonymous namespace)::getExecutableDir()
Line
Count
Source
41
2
    {
42
2
        OUString uri;
43
2
        if (osl_getExecutableFile(&uri.pData) != osl_Process_E_None) {
44
0
            abort();
45
0
        }
46
2
        sal_Int32 lastDirSeparatorPos = uri.lastIndexOf('/');
47
2
        if (lastDirSeparatorPos >= 0) {
48
2
            uri = uri.copy(0, lastDirSeparatorPos + 1);
49
2
        }
50
2
        return uri;
51
2
    }
tgafuzzer.cxx:(anonymous namespace)::getExecutableDir()
Line
Count
Source
41
2
    {
42
2
        OUString uri;
43
2
        if (osl_getExecutableFile(&uri.pData) != osl_Process_E_None) {
44
0
            abort();
45
0
        }
46
2
        sal_Int32 lastDirSeparatorPos = uri.lastIndexOf('/');
47
2
        if (lastDirSeparatorPos >= 0) {
48
2
            uri = uri.copy(0, lastDirSeparatorPos + 1);
49
2
        }
50
2
        return uri;
51
2
    }
svmfuzzer.cxx:(anonymous namespace)::getExecutableDir()
Line
Count
Source
41
2
    {
42
2
        OUString uri;
43
2
        if (osl_getExecutableFile(&uri.pData) != osl_Process_E_None) {
44
0
            abort();
45
0
        }
46
2
        sal_Int32 lastDirSeparatorPos = uri.lastIndexOf('/');
47
2
        if (lastDirSeparatorPos >= 0) {
48
2
            uri = uri.copy(0, lastDirSeparatorPos + 1);
49
2
        }
50
2
        return uri;
51
2
    }
fodtfuzzer.cxx:(anonymous namespace)::getExecutableDir()
Line
Count
Source
41
2
    {
42
2
        OUString uri;
43
2
        if (osl_getExecutableFile(&uri.pData) != osl_Process_E_None) {
44
0
            abort();
45
0
        }
46
2
        sal_Int32 lastDirSeparatorPos = uri.lastIndexOf('/');
47
2
        if (lastDirSeparatorPos >= 0) {
48
2
            uri = uri.copy(0, lastDirSeparatorPos + 1);
49
2
        }
50
2
        return uri;
51
2
    }
pptfuzzer.cxx:(anonymous namespace)::getExecutableDir()
Line
Count
Source
41
2
    {
42
2
        OUString uri;
43
2
        if (osl_getExecutableFile(&uri.pData) != osl_Process_E_None) {
44
0
            abort();
45
0
        }
46
2
        sal_Int32 lastDirSeparatorPos = uri.lastIndexOf('/');
47
2
        if (lastDirSeparatorPos >= 0) {
48
2
            uri = uri.copy(0, lastDirSeparatorPos + 1);
49
2
        }
50
2
        return uri;
51
2
    }
olefuzzer.cxx:(anonymous namespace)::getExecutableDir()
Line
Count
Source
41
2
    {
42
2
        OUString uri;
43
2
        if (osl_getExecutableFile(&uri.pData) != osl_Process_E_None) {
44
0
            abort();
45
0
        }
46
2
        sal_Int32 lastDirSeparatorPos = uri.lastIndexOf('/');
47
2
        if (lastDirSeparatorPos >= 0) {
48
2
            uri = uri.copy(0, lastDirSeparatorPos + 1);
49
2
        }
50
2
        return uri;
51
2
    }
hwpfuzzer.cxx:(anonymous namespace)::getExecutableDir()
Line
Count
Source
41
2
    {
42
2
        OUString uri;
43
2
        if (osl_getExecutableFile(&uri.pData) != osl_Process_E_None) {
44
0
            abort();
45
0
        }
46
2
        sal_Int32 lastDirSeparatorPos = uri.lastIndexOf('/');
47
2
        if (lastDirSeparatorPos >= 0) {
48
2
            uri = uri.copy(0, lastDirSeparatorPos + 1);
49
2
        }
50
2
        return uri;
51
2
    }
jpgfuzzer.cxx:(anonymous namespace)::getExecutableDir()
Line
Count
Source
41
2
    {
42
2
        OUString uri;
43
2
        if (osl_getExecutableFile(&uri.pData) != osl_Process_E_None) {
44
0
            abort();
45
0
        }
46
2
        sal_Int32 lastDirSeparatorPos = uri.lastIndexOf('/');
47
2
        if (lastDirSeparatorPos >= 0) {
48
2
            uri = uri.copy(0, lastDirSeparatorPos + 1);
49
2
        }
50
2
        return uri;
51
2
    }
dxffuzzer.cxx:(anonymous namespace)::getExecutableDir()
Line
Count
Source
41
2
    {
42
2
        OUString uri;
43
2
        if (osl_getExecutableFile(&uri.pData) != osl_Process_E_None) {
44
0
            abort();
45
0
        }
46
2
        sal_Int32 lastDirSeparatorPos = uri.lastIndexOf('/');
47
2
        if (lastDirSeparatorPos >= 0) {
48
2
            uri = uri.copy(0, lastDirSeparatorPos + 1);
49
2
        }
50
2
        return uri;
51
2
    }
ppmfuzzer.cxx:(anonymous namespace)::getExecutableDir()
Line
Count
Source
41
2
    {
42
2
        OUString uri;
43
2
        if (osl_getExecutableFile(&uri.pData) != osl_Process_E_None) {
44
0
            abort();
45
0
        }
46
2
        sal_Int32 lastDirSeparatorPos = uri.lastIndexOf('/');
47
2
        if (lastDirSeparatorPos >= 0) {
48
2
            uri = uri.copy(0, lastDirSeparatorPos + 1);
49
2
        }
50
2
        return uri;
51
2
    }
pngfuzzer.cxx:(anonymous namespace)::getExecutableDir()
Line
Count
Source
41
2
    {
42
2
        OUString uri;
43
2
        if (osl_getExecutableFile(&uri.pData) != osl_Process_E_None) {
44
0
            abort();
45
0
        }
46
2
        sal_Int32 lastDirSeparatorPos = uri.lastIndexOf('/');
47
2
        if (lastDirSeparatorPos >= 0) {
48
2
            uri = uri.copy(0, lastDirSeparatorPos + 1);
49
2
        }
50
2
        return uri;
51
2
    }
rasfuzzer.cxx:(anonymous namespace)::getExecutableDir()
Line
Count
Source
41
2
    {
42
2
        OUString uri;
43
2
        if (osl_getExecutableFile(&uri.pData) != osl_Process_E_None) {
44
0
            abort();
45
0
        }
46
2
        sal_Int32 lastDirSeparatorPos = uri.lastIndexOf('/');
47
2
        if (lastDirSeparatorPos >= 0) {
48
2
            uri = uri.copy(0, lastDirSeparatorPos + 1);
49
2
        }
50
2
        return uri;
51
2
    }
bmpfuzzer.cxx:(anonymous namespace)::getExecutableDir()
Line
Count
Source
41
2
    {
42
2
        OUString uri;
43
2
        if (osl_getExecutableFile(&uri.pData) != osl_Process_E_None) {
44
0
            abort();
45
0
        }
46
2
        sal_Int32 lastDirSeparatorPos = uri.lastIndexOf('/');
47
2
        if (lastDirSeparatorPos >= 0) {
48
2
            uri = uri.copy(0, lastDirSeparatorPos + 1);
49
2
        }
50
2
        return uri;
51
2
    }
qpwfuzzer.cxx:(anonymous namespace)::getExecutableDir()
Line
Count
Source
41
2
    {
42
2
        OUString uri;
43
2
        if (osl_getExecutableFile(&uri.pData) != osl_Process_E_None) {
44
0
            abort();
45
0
        }
46
2
        sal_Int32 lastDirSeparatorPos = uri.lastIndexOf('/');
47
2
        if (lastDirSeparatorPos >= 0) {
48
2
            uri = uri.copy(0, lastDirSeparatorPos + 1);
49
2
        }
50
2
        return uri;
51
2
    }
fods2xlsfuzzer.cxx:(anonymous namespace)::getExecutableDir()
Line
Count
Source
41
2
    {
42
2
        OUString uri;
43
2
        if (osl_getExecutableFile(&uri.pData) != osl_Process_E_None) {
44
0
            abort();
45
0
        }
46
2
        sal_Int32 lastDirSeparatorPos = uri.lastIndexOf('/');
47
2
        if (lastDirSeparatorPos >= 0) {
48
2
            uri = uri.copy(0, lastDirSeparatorPos + 1);
49
2
        }
50
2
        return uri;
51
2
    }
fodsfuzzer.cxx:(anonymous namespace)::getExecutableDir()
Line
Count
Source
41
2
    {
42
2
        OUString uri;
43
2
        if (osl_getExecutableFile(&uri.pData) != osl_Process_E_None) {
44
0
            abort();
45
0
        }
46
2
        sal_Int32 lastDirSeparatorPos = uri.lastIndexOf('/');
47
2
        if (lastDirSeparatorPos >= 0) {
48
2
            uri = uri.copy(0, lastDirSeparatorPos + 1);
49
2
        }
50
2
        return uri;
51
2
    }
xlsxfuzzer.cxx:(anonymous namespace)::getExecutableDir()
Line
Count
Source
41
2
    {
42
2
        OUString uri;
43
2
        if (osl_getExecutableFile(&uri.pData) != osl_Process_E_None) {
44
0
            abort();
45
0
        }
46
2
        sal_Int32 lastDirSeparatorPos = uri.lastIndexOf('/');
47
2
        if (lastDirSeparatorPos >= 0) {
48
2
            uri = uri.copy(0, lastDirSeparatorPos + 1);
49
2
        }
50
2
        return uri;
51
2
    }
52
53
    OUString getExecutableName()
54
107
    {
55
107
        OUString uri;
56
107
        if (osl_getExecutableFile(&uri.pData) != osl_Process_E_None) {
57
0
            abort();
58
0
        }
59
107
        return uri.copy(uri.lastIndexOf('/') + 1);
60
107
    }
xpmfuzzer.cxx:(anonymous namespace)::getExecutableName()
Line
Count
Source
54
3
    {
55
3
        OUString uri;
56
3
        if (osl_getExecutableFile(&uri.pData) != osl_Process_E_None) {
57
0
            abort();
58
0
        }
59
3
        return uri.copy(uri.lastIndexOf('/') + 1);
60
3
    }
xlsfuzzer.cxx:(anonymous namespace)::getExecutableName()
Line
Count
Source
54
2
    {
55
2
        OUString uri;
56
2
        if (osl_getExecutableFile(&uri.pData) != osl_Process_E_None) {
57
0
            abort();
58
0
        }
59
2
        return uri.copy(uri.lastIndexOf('/') + 1);
60
2
    }
schtmlfuzzer.cxx:(anonymous namespace)::getExecutableName()
Line
Count
Source
54
2
    {
55
2
        OUString uri;
56
2
        if (osl_getExecutableFile(&uri.pData) != osl_Process_E_None) {
57
0
            abort();
58
0
        }
59
2
        return uri.copy(uri.lastIndexOf('/') + 1);
60
2
    }
rtffuzzer.cxx:(anonymous namespace)::getExecutableName()
Line
Count
Source
54
2
    {
55
2
        OUString uri;
56
2
        if (osl_getExecutableFile(&uri.pData) != osl_Process_E_None) {
57
0
            abort();
58
0
        }
59
2
        return uri.copy(uri.lastIndexOf('/') + 1);
60
2
    }
rtf2pdffuzzer.cxx:(anonymous namespace)::getExecutableName()
Line
Count
Source
54
2
    {
55
2
        OUString uri;
56
2
        if (osl_getExecutableFile(&uri.pData) != osl_Process_E_None) {
57
0
            abort();
58
0
        }
59
2
        return uri.copy(uri.lastIndexOf('/') + 1);
60
2
    }
ww8fuzzer.cxx:(anonymous namespace)::getExecutableName()
Line
Count
Source
54
2
    {
55
2
        OUString uri;
56
2
        if (osl_getExecutableFile(&uri.pData) != osl_Process_E_None) {
57
0
            abort();
58
0
        }
59
2
        return uri.copy(uri.lastIndexOf('/') + 1);
60
2
    }
wmffuzzer.cxx:(anonymous namespace)::getExecutableName()
Line
Count
Source
54
2
    {
55
2
        OUString uri;
56
2
        if (osl_getExecutableFile(&uri.pData) != osl_Process_E_None) {
57
0
            abort();
58
0
        }
59
2
        return uri.copy(uri.lastIndexOf('/') + 1);
60
2
    }
pdf2fodgfuzzer.cxx:(anonymous namespace)::getExecutableName()
Line
Count
Source
54
2
    {
55
2
        OUString uri;
56
2
        if (osl_getExecutableFile(&uri.pData) != osl_Process_E_None) {
57
0
            abort();
58
0
        }
59
2
        return uri.copy(uri.lastIndexOf('/') + 1);
60
2
    }
giffuzzer.cxx:(anonymous namespace)::getExecutableName()
Line
Count
Source
54
1
    {
55
1
        OUString uri;
56
1
        if (osl_getExecutableFile(&uri.pData) != osl_Process_E_None) {
57
0
            abort();
58
0
        }
59
1
        return uri.copy(uri.lastIndexOf('/') + 1);
60
1
    }
fodt2pdffuzzer.cxx:(anonymous namespace)::getExecutableName()
Line
Count
Source
54
2
    {
55
2
        OUString uri;
56
2
        if (osl_getExecutableFile(&uri.pData) != osl_Process_E_None) {
57
0
            abort();
58
0
        }
59
2
        return uri.copy(uri.lastIndexOf('/') + 1);
60
2
    }
pptxfuzzer.cxx:(anonymous namespace)::getExecutableName()
Line
Count
Source
54
2
    {
55
2
        OUString uri;
56
2
        if (osl_getExecutableFile(&uri.pData) != osl_Process_E_None) {
57
0
            abort();
58
0
        }
59
2
        return uri.copy(uri.lastIndexOf('/') + 1);
60
2
    }
dbffuzzer.cxx:(anonymous namespace)::getExecutableName()
Line
Count
Source
54
2
    {
55
2
        OUString uri;
56
2
        if (osl_getExecutableFile(&uri.pData) != osl_Process_E_None) {
57
0
            abort();
58
0
        }
59
2
        return uri.copy(uri.lastIndexOf('/') + 1);
60
2
    }
scrtffuzzer.cxx:(anonymous namespace)::getExecutableName()
Line
Count
Source
54
2
    {
55
2
        OUString uri;
56
2
        if (osl_getExecutableFile(&uri.pData) != osl_Process_E_None) {
57
0
            abort();
58
0
        }
59
2
        return uri.copy(uri.lastIndexOf('/') + 1);
60
2
    }
pctfuzzer.cxx:(anonymous namespace)::getExecutableName()
Line
Count
Source
54
2
    {
55
2
        OUString uri;
56
2
        if (osl_getExecutableFile(&uri.pData) != osl_Process_E_None) {
57
0
            abort();
58
0
        }
59
2
        return uri.copy(uri.lastIndexOf('/') + 1);
60
2
    }
lwpfuzzer.cxx:(anonymous namespace)::getExecutableName()
Line
Count
Source
54
2
    {
55
2
        OUString uri;
56
2
        if (osl_getExecutableFile(&uri.pData) != osl_Process_E_None) {
57
0
            abort();
58
0
        }
59
2
        return uri.copy(uri.lastIndexOf('/') + 1);
60
2
    }
zipfuzzer.cxx:(anonymous namespace)::getExecutableName()
Line
Count
Source
54
2
    {
55
2
        OUString uri;
56
2
        if (osl_getExecutableFile(&uri.pData) != osl_Process_E_None) {
57
0
            abort();
58
0
        }
59
2
        return uri.copy(uri.lastIndexOf('/') + 1);
60
2
    }
xbmfuzzer.cxx:(anonymous namespace)::getExecutableName()
Line
Count
Source
54
2
    {
55
2
        OUString uri;
56
2
        if (osl_getExecutableFile(&uri.pData) != osl_Process_E_None) {
57
0
            abort();
58
0
        }
59
2
        return uri.copy(uri.lastIndexOf('/') + 1);
60
2
    }
cgmfuzzer.cxx:(anonymous namespace)::getExecutableName()
Line
Count
Source
54
1
    {
55
1
        OUString uri;
56
1
        if (osl_getExecutableFile(&uri.pData) != osl_Process_E_None) {
57
0
            abort();
58
0
        }
59
1
        return uri.copy(uri.lastIndexOf('/') + 1);
60
1
    }
htmlfuzzer.cxx:(anonymous namespace)::getExecutableName()
Line
Count
Source
54
2
    {
55
2
        OUString uri;
56
2
        if (osl_getExecutableFile(&uri.pData) != osl_Process_E_None) {
57
0
            abort();
58
0
        }
59
2
        return uri.copy(uri.lastIndexOf('/') + 1);
60
2
    }
602fuzzer.cxx:(anonymous namespace)::getExecutableName()
Line
Count
Source
54
2
    {
55
2
        OUString uri;
56
2
        if (osl_getExecutableFile(&uri.pData) != osl_Process_E_None) {
57
0
            abort();
58
0
        }
59
2
        return uri.copy(uri.lastIndexOf('/') + 1);
60
2
    }
pcxfuzzer.cxx:(anonymous namespace)::getExecutableName()
Line
Count
Source
54
2
    {
55
2
        OUString uri;
56
2
        if (osl_getExecutableFile(&uri.pData) != osl_Process_E_None) {
57
0
            abort();
58
0
        }
59
2
        return uri.copy(uri.lastIndexOf('/') + 1);
60
2
    }
sftfuzzer.cxx:(anonymous namespace)::getExecutableName()
Line
Count
Source
54
2
    {
55
2
        OUString uri;
56
2
        if (osl_getExecutableFile(&uri.pData) != osl_Process_E_None) {
57
0
            abort();
58
0
        }
59
2
        return uri.copy(uri.lastIndexOf('/') + 1);
60
2
    }
eotfuzzer.cxx:(anonymous namespace)::getExecutableName()
Line
Count
Source
54
2
    {
55
2
        OUString uri;
56
2
        if (osl_getExecutableFile(&uri.pData) != osl_Process_E_None) {
57
0
            abort();
58
0
        }
59
2
        return uri.copy(uri.lastIndexOf('/') + 1);
60
2
    }
wksfuzzer.cxx:(anonymous namespace)::getExecutableName()
Line
Count
Source
54
2
    {
55
2
        OUString uri;
56
2
        if (osl_getExecutableFile(&uri.pData) != osl_Process_E_None) {
57
0
            abort();
58
0
        }
59
2
        return uri.copy(uri.lastIndexOf('/') + 1);
60
2
    }
pcdfuzzer.cxx:(anonymous namespace)::getExecutableName()
Line
Count
Source
54
2
    {
55
2
        OUString uri;
56
2
        if (osl_getExecutableFile(&uri.pData) != osl_Process_E_None) {
57
0
            abort();
58
0
        }
59
2
        return uri.copy(uri.lastIndexOf('/') + 1);
60
2
    }
mmlfuzzer.cxx:(anonymous namespace)::getExecutableName()
Line
Count
Source
54
2
    {
55
2
        OUString uri;
56
2
        if (osl_getExecutableFile(&uri.pData) != osl_Process_E_None) {
57
0
            abort();
58
0
        }
59
2
        return uri.copy(uri.lastIndexOf('/') + 1);
60
2
    }
ww2fuzzer.cxx:(anonymous namespace)::getExecutableName()
Line
Count
Source
54
2
    {
55
2
        OUString uri;
56
2
        if (osl_getExecutableFile(&uri.pData) != osl_Process_E_None) {
57
0
            abort();
58
0
        }
59
2
        return uri.copy(uri.lastIndexOf('/') + 1);
60
2
    }
diffuzzer.cxx:(anonymous namespace)::getExecutableName()
Line
Count
Source
54
2
    {
55
2
        OUString uri;
56
2
        if (osl_getExecutableFile(&uri.pData) != osl_Process_E_None) {
57
0
            abort();
58
0
        }
59
2
        return uri.copy(uri.lastIndexOf('/') + 1);
60
2
    }
ww6fuzzer.cxx:(anonymous namespace)::getExecutableName()
Line
Count
Source
54
2
    {
55
2
        OUString uri;
56
2
        if (osl_getExecutableFile(&uri.pData) != osl_Process_E_None) {
57
0
            abort();
58
0
        }
59
2
        return uri.copy(uri.lastIndexOf('/') + 1);
60
2
    }
docxfuzzer.cxx:(anonymous namespace)::getExecutableName()
Line
Count
Source
54
2
    {
55
2
        OUString uri;
56
2
        if (osl_getExecutableFile(&uri.pData) != osl_Process_E_None) {
57
0
            abort();
58
0
        }
59
2
        return uri.copy(uri.lastIndexOf('/') + 1);
60
2
    }
psdfuzzer.cxx:(anonymous namespace)::getExecutableName()
Line
Count
Source
54
2
    {
55
2
        OUString uri;
56
2
        if (osl_getExecutableFile(&uri.pData) != osl_Process_E_None) {
57
0
            abort();
58
0
        }
59
2
        return uri.copy(uri.lastIndexOf('/') + 1);
60
2
    }
tiffuzzer.cxx:(anonymous namespace)::getExecutableName()
Line
Count
Source
54
2
    {
55
2
        OUString uri;
56
2
        if (osl_getExecutableFile(&uri.pData) != osl_Process_E_None) {
57
0
            abort();
58
0
        }
59
2
        return uri.copy(uri.lastIndexOf('/') + 1);
60
2
    }
svgfuzzer.cxx:(anonymous namespace)::getExecutableName()
Line
Count
Source
54
2
    {
55
2
        OUString uri;
56
2
        if (osl_getExecutableFile(&uri.pData) != osl_Process_E_None) {
57
0
            abort();
58
0
        }
59
2
        return uri.copy(uri.lastIndexOf('/') + 1);
60
2
    }
metfuzzer.cxx:(anonymous namespace)::getExecutableName()
Line
Count
Source
54
2
    {
55
2
        OUString uri;
56
2
        if (osl_getExecutableFile(&uri.pData) != osl_Process_E_None) {
57
0
            abort();
58
0
        }
59
2
        return uri.copy(uri.lastIndexOf('/') + 1);
60
2
    }
epsfuzzer.cxx:(anonymous namespace)::getExecutableName()
Line
Count
Source
54
2
    {
55
2
        OUString uri;
56
2
        if (osl_getExecutableFile(&uri.pData) != osl_Process_E_None) {
57
0
            abort();
58
0
        }
59
2
        return uri.copy(uri.lastIndexOf('/') + 1);
60
2
    }
fodpfuzzer.cxx:(anonymous namespace)::getExecutableName()
Line
Count
Source
54
2
    {
55
2
        OUString uri;
56
2
        if (osl_getExecutableFile(&uri.pData) != osl_Process_E_None) {
57
0
            abort();
58
0
        }
59
2
        return uri.copy(uri.lastIndexOf('/') + 1);
60
2
    }
Unexecuted instantiation: mtpfuzzer.cxx:(anonymous namespace)::getExecutableName()
slkfuzzer.cxx:(anonymous namespace)::getExecutableName()
Line
Count
Source
54
2
    {
55
2
        OUString uri;
56
2
        if (osl_getExecutableFile(&uri.pData) != osl_Process_E_None) {
57
0
            abort();
58
0
        }
59
2
        return uri.copy(uri.lastIndexOf('/') + 1);
60
2
    }
webpfuzzer.cxx:(anonymous namespace)::getExecutableName()
Line
Count
Source
54
2
    {
55
2
        OUString uri;
56
2
        if (osl_getExecutableFile(&uri.pData) != osl_Process_E_None) {
57
0
            abort();
58
0
        }
59
2
        return uri.copy(uri.lastIndexOf('/') + 1);
60
2
    }
tgafuzzer.cxx:(anonymous namespace)::getExecutableName()
Line
Count
Source
54
2
    {
55
2
        OUString uri;
56
2
        if (osl_getExecutableFile(&uri.pData) != osl_Process_E_None) {
57
0
            abort();
58
0
        }
59
2
        return uri.copy(uri.lastIndexOf('/') + 1);
60
2
    }
svmfuzzer.cxx:(anonymous namespace)::getExecutableName()
Line
Count
Source
54
2
    {
55
2
        OUString uri;
56
2
        if (osl_getExecutableFile(&uri.pData) != osl_Process_E_None) {
57
0
            abort();
58
0
        }
59
2
        return uri.copy(uri.lastIndexOf('/') + 1);
60
2
    }
fodtfuzzer.cxx:(anonymous namespace)::getExecutableName()
Line
Count
Source
54
2
    {
55
2
        OUString uri;
56
2
        if (osl_getExecutableFile(&uri.pData) != osl_Process_E_None) {
57
0
            abort();
58
0
        }
59
2
        return uri.copy(uri.lastIndexOf('/') + 1);
60
2
    }
pptfuzzer.cxx:(anonymous namespace)::getExecutableName()
Line
Count
Source
54
2
    {
55
2
        OUString uri;
56
2
        if (osl_getExecutableFile(&uri.pData) != osl_Process_E_None) {
57
0
            abort();
58
0
        }
59
2
        return uri.copy(uri.lastIndexOf('/') + 1);
60
2
    }
olefuzzer.cxx:(anonymous namespace)::getExecutableName()
Line
Count
Source
54
2
    {
55
2
        OUString uri;
56
2
        if (osl_getExecutableFile(&uri.pData) != osl_Process_E_None) {
57
0
            abort();
58
0
        }
59
2
        return uri.copy(uri.lastIndexOf('/') + 1);
60
2
    }
hwpfuzzer.cxx:(anonymous namespace)::getExecutableName()
Line
Count
Source
54
2
    {
55
2
        OUString uri;
56
2
        if (osl_getExecutableFile(&uri.pData) != osl_Process_E_None) {
57
0
            abort();
58
0
        }
59
2
        return uri.copy(uri.lastIndexOf('/') + 1);
60
2
    }
jpgfuzzer.cxx:(anonymous namespace)::getExecutableName()
Line
Count
Source
54
2
    {
55
2
        OUString uri;
56
2
        if (osl_getExecutableFile(&uri.pData) != osl_Process_E_None) {
57
0
            abort();
58
0
        }
59
2
        return uri.copy(uri.lastIndexOf('/') + 1);
60
2
    }
dxffuzzer.cxx:(anonymous namespace)::getExecutableName()
Line
Count
Source
54
2
    {
55
2
        OUString uri;
56
2
        if (osl_getExecutableFile(&uri.pData) != osl_Process_E_None) {
57
0
            abort();
58
0
        }
59
2
        return uri.copy(uri.lastIndexOf('/') + 1);
60
2
    }
ppmfuzzer.cxx:(anonymous namespace)::getExecutableName()
Line
Count
Source
54
2
    {
55
2
        OUString uri;
56
2
        if (osl_getExecutableFile(&uri.pData) != osl_Process_E_None) {
57
0
            abort();
58
0
        }
59
2
        return uri.copy(uri.lastIndexOf('/') + 1);
60
2
    }
pngfuzzer.cxx:(anonymous namespace)::getExecutableName()
Line
Count
Source
54
2
    {
55
2
        OUString uri;
56
2
        if (osl_getExecutableFile(&uri.pData) != osl_Process_E_None) {
57
0
            abort();
58
0
        }
59
2
        return uri.copy(uri.lastIndexOf('/') + 1);
60
2
    }
rasfuzzer.cxx:(anonymous namespace)::getExecutableName()
Line
Count
Source
54
2
    {
55
2
        OUString uri;
56
2
        if (osl_getExecutableFile(&uri.pData) != osl_Process_E_None) {
57
0
            abort();
58
0
        }
59
2
        return uri.copy(uri.lastIndexOf('/') + 1);
60
2
    }
bmpfuzzer.cxx:(anonymous namespace)::getExecutableName()
Line
Count
Source
54
2
    {
55
2
        OUString uri;
56
2
        if (osl_getExecutableFile(&uri.pData) != osl_Process_E_None) {
57
0
            abort();
58
0
        }
59
2
        return uri.copy(uri.lastIndexOf('/') + 1);
60
2
    }
qpwfuzzer.cxx:(anonymous namespace)::getExecutableName()
Line
Count
Source
54
2
    {
55
2
        OUString uri;
56
2
        if (osl_getExecutableFile(&uri.pData) != osl_Process_E_None) {
57
0
            abort();
58
0
        }
59
2
        return uri.copy(uri.lastIndexOf('/') + 1);
60
2
    }
fods2xlsfuzzer.cxx:(anonymous namespace)::getExecutableName()
Line
Count
Source
54
2
    {
55
2
        OUString uri;
56
2
        if (osl_getExecutableFile(&uri.pData) != osl_Process_E_None) {
57
0
            abort();
58
0
        }
59
2
        return uri.copy(uri.lastIndexOf('/') + 1);
60
2
    }
fodsfuzzer.cxx:(anonymous namespace)::getExecutableName()
Line
Count
Source
54
2
    {
55
2
        OUString uri;
56
2
        if (osl_getExecutableFile(&uri.pData) != osl_Process_E_None) {
57
0
            abort();
58
0
        }
59
2
        return uri.copy(uri.lastIndexOf('/') + 1);
60
2
    }
xlsxfuzzer.cxx:(anonymous namespace)::getExecutableName()
Line
Count
Source
54
2
    {
55
2
        OUString uri;
56
2
        if (osl_getExecutableFile(&uri.pData) != osl_Process_E_None) {
57
0
            abort();
58
0
        }
59
2
        return uri.copy(uri.lastIndexOf('/') + 1);
60
2
    }
61
62
    void setFontConfigConf(const OUString &execdir)
63
106
    {
64
106
        osl::File aFontConfig("file:///tmp/wmffuzzerfonts.conf");
65
106
        if (aFontConfig.open(osl_File_OpenFlag_Create | osl_File_OpenFlag_Write) == osl::File::E_None)
66
1
        {
67
1
            OUString sExecDir;
68
1
            osl::FileBase::getSystemPathFromFileURL(execdir, sExecDir);
69
70
1
            OStringBuffer aBuffer("<?xml version=\"1.0\"?>\n<fontconfig><dir>");
71
1
            aBuffer.append(OUStringToOString(sExecDir, osl_getThreadTextEncoding()))
72
1
                   .append(OUStringToOString(getExecutableName(), osl_getThreadTextEncoding())).append(".fonts");
73
1
            aBuffer.append("</dir><cachedir>/tmp/cache/fontconfig</cachedir></fontconfig>");
74
1
            OString aConf = aBuffer.makeStringAndClear();
75
1
            sal_uInt64 aBytesWritten;
76
1
            aFontConfig.write(aConf.getStr(), aConf.getLength(), aBytesWritten);
77
1
            assert(aBytesWritten == aConf.getLength());
78
1
        }
79
106
        setenv("FONTCONFIG_FILE", "/tmp/wmffuzzerfonts.conf", 0);
80
106
    }
xpmfuzzer.cxx:(anonymous namespace)::setFontConfigConf(rtl::OUString const&)
Line
Count
Source
63
2
    {
64
2
        osl::File aFontConfig("file:///tmp/wmffuzzerfonts.conf");
65
2
        if (aFontConfig.open(osl_File_OpenFlag_Create | osl_File_OpenFlag_Write) == osl::File::E_None)
66
1
        {
67
1
            OUString sExecDir;
68
1
            osl::FileBase::getSystemPathFromFileURL(execdir, sExecDir);
69
70
1
            OStringBuffer aBuffer("<?xml version=\"1.0\"?>\n<fontconfig><dir>");
71
1
            aBuffer.append(OUStringToOString(sExecDir, osl_getThreadTextEncoding()))
72
1
                   .append(OUStringToOString(getExecutableName(), osl_getThreadTextEncoding())).append(".fonts");
73
1
            aBuffer.append("</dir><cachedir>/tmp/cache/fontconfig</cachedir></fontconfig>");
74
1
            OString aConf = aBuffer.makeStringAndClear();
75
1
            sal_uInt64 aBytesWritten;
76
1
            aFontConfig.write(aConf.getStr(), aConf.getLength(), aBytesWritten);
77
            assert(aBytesWritten == aConf.getLength());
78
1
        }
79
2
        setenv("FONTCONFIG_FILE", "/tmp/wmffuzzerfonts.conf", 0);
80
2
    }
xlsfuzzer.cxx:(anonymous namespace)::setFontConfigConf(rtl::OUString const&)
Line
Count
Source
63
2
    {
64
2
        osl::File aFontConfig("file:///tmp/wmffuzzerfonts.conf");
65
2
        if (aFontConfig.open(osl_File_OpenFlag_Create | osl_File_OpenFlag_Write) == osl::File::E_None)
66
0
        {
67
0
            OUString sExecDir;
68
0
            osl::FileBase::getSystemPathFromFileURL(execdir, sExecDir);
69
70
0
            OStringBuffer aBuffer("<?xml version=\"1.0\"?>\n<fontconfig><dir>");
71
0
            aBuffer.append(OUStringToOString(sExecDir, osl_getThreadTextEncoding()))
72
0
                   .append(OUStringToOString(getExecutableName(), osl_getThreadTextEncoding())).append(".fonts");
73
0
            aBuffer.append("</dir><cachedir>/tmp/cache/fontconfig</cachedir></fontconfig>");
74
0
            OString aConf = aBuffer.makeStringAndClear();
75
0
            sal_uInt64 aBytesWritten;
76
0
            aFontConfig.write(aConf.getStr(), aConf.getLength(), aBytesWritten);
77
            assert(aBytesWritten == aConf.getLength());
78
0
        }
79
2
        setenv("FONTCONFIG_FILE", "/tmp/wmffuzzerfonts.conf", 0);
80
2
    }
schtmlfuzzer.cxx:(anonymous namespace)::setFontConfigConf(rtl::OUString const&)
Line
Count
Source
63
2
    {
64
2
        osl::File aFontConfig("file:///tmp/wmffuzzerfonts.conf");
65
2
        if (aFontConfig.open(osl_File_OpenFlag_Create | osl_File_OpenFlag_Write) == osl::File::E_None)
66
0
        {
67
0
            OUString sExecDir;
68
0
            osl::FileBase::getSystemPathFromFileURL(execdir, sExecDir);
69
70
0
            OStringBuffer aBuffer("<?xml version=\"1.0\"?>\n<fontconfig><dir>");
71
0
            aBuffer.append(OUStringToOString(sExecDir, osl_getThreadTextEncoding()))
72
0
                   .append(OUStringToOString(getExecutableName(), osl_getThreadTextEncoding())).append(".fonts");
73
0
            aBuffer.append("</dir><cachedir>/tmp/cache/fontconfig</cachedir></fontconfig>");
74
0
            OString aConf = aBuffer.makeStringAndClear();
75
0
            sal_uInt64 aBytesWritten;
76
0
            aFontConfig.write(aConf.getStr(), aConf.getLength(), aBytesWritten);
77
            assert(aBytesWritten == aConf.getLength());
78
0
        }
79
2
        setenv("FONTCONFIG_FILE", "/tmp/wmffuzzerfonts.conf", 0);
80
2
    }
rtffuzzer.cxx:(anonymous namespace)::setFontConfigConf(rtl::OUString const&)
Line
Count
Source
63
2
    {
64
2
        osl::File aFontConfig("file:///tmp/wmffuzzerfonts.conf");
65
2
        if (aFontConfig.open(osl_File_OpenFlag_Create | osl_File_OpenFlag_Write) == osl::File::E_None)
66
0
        {
67
0
            OUString sExecDir;
68
0
            osl::FileBase::getSystemPathFromFileURL(execdir, sExecDir);
69
70
0
            OStringBuffer aBuffer("<?xml version=\"1.0\"?>\n<fontconfig><dir>");
71
0
            aBuffer.append(OUStringToOString(sExecDir, osl_getThreadTextEncoding()))
72
0
                   .append(OUStringToOString(getExecutableName(), osl_getThreadTextEncoding())).append(".fonts");
73
0
            aBuffer.append("</dir><cachedir>/tmp/cache/fontconfig</cachedir></fontconfig>");
74
0
            OString aConf = aBuffer.makeStringAndClear();
75
0
            sal_uInt64 aBytesWritten;
76
0
            aFontConfig.write(aConf.getStr(), aConf.getLength(), aBytesWritten);
77
            assert(aBytesWritten == aConf.getLength());
78
0
        }
79
2
        setenv("FONTCONFIG_FILE", "/tmp/wmffuzzerfonts.conf", 0);
80
2
    }
rtf2pdffuzzer.cxx:(anonymous namespace)::setFontConfigConf(rtl::OUString const&)
Line
Count
Source
63
2
    {
64
2
        osl::File aFontConfig("file:///tmp/wmffuzzerfonts.conf");
65
2
        if (aFontConfig.open(osl_File_OpenFlag_Create | osl_File_OpenFlag_Write) == osl::File::E_None)
66
0
        {
67
0
            OUString sExecDir;
68
0
            osl::FileBase::getSystemPathFromFileURL(execdir, sExecDir);
69
70
0
            OStringBuffer aBuffer("<?xml version=\"1.0\"?>\n<fontconfig><dir>");
71
0
            aBuffer.append(OUStringToOString(sExecDir, osl_getThreadTextEncoding()))
72
0
                   .append(OUStringToOString(getExecutableName(), osl_getThreadTextEncoding())).append(".fonts");
73
0
            aBuffer.append("</dir><cachedir>/tmp/cache/fontconfig</cachedir></fontconfig>");
74
0
            OString aConf = aBuffer.makeStringAndClear();
75
0
            sal_uInt64 aBytesWritten;
76
0
            aFontConfig.write(aConf.getStr(), aConf.getLength(), aBytesWritten);
77
            assert(aBytesWritten == aConf.getLength());
78
0
        }
79
2
        setenv("FONTCONFIG_FILE", "/tmp/wmffuzzerfonts.conf", 0);
80
2
    }
ww8fuzzer.cxx:(anonymous namespace)::setFontConfigConf(rtl::OUString const&)
Line
Count
Source
63
2
    {
64
2
        osl::File aFontConfig("file:///tmp/wmffuzzerfonts.conf");
65
2
        if (aFontConfig.open(osl_File_OpenFlag_Create | osl_File_OpenFlag_Write) == osl::File::E_None)
66
0
        {
67
0
            OUString sExecDir;
68
0
            osl::FileBase::getSystemPathFromFileURL(execdir, sExecDir);
69
70
0
            OStringBuffer aBuffer("<?xml version=\"1.0\"?>\n<fontconfig><dir>");
71
0
            aBuffer.append(OUStringToOString(sExecDir, osl_getThreadTextEncoding()))
72
0
                   .append(OUStringToOString(getExecutableName(), osl_getThreadTextEncoding())).append(".fonts");
73
0
            aBuffer.append("</dir><cachedir>/tmp/cache/fontconfig</cachedir></fontconfig>");
74
0
            OString aConf = aBuffer.makeStringAndClear();
75
0
            sal_uInt64 aBytesWritten;
76
0
            aFontConfig.write(aConf.getStr(), aConf.getLength(), aBytesWritten);
77
            assert(aBytesWritten == aConf.getLength());
78
0
        }
79
2
        setenv("FONTCONFIG_FILE", "/tmp/wmffuzzerfonts.conf", 0);
80
2
    }
wmffuzzer.cxx:(anonymous namespace)::setFontConfigConf(rtl::OUString const&)
Line
Count
Source
63
2
    {
64
2
        osl::File aFontConfig("file:///tmp/wmffuzzerfonts.conf");
65
2
        if (aFontConfig.open(osl_File_OpenFlag_Create | osl_File_OpenFlag_Write) == osl::File::E_None)
66
0
        {
67
0
            OUString sExecDir;
68
0
            osl::FileBase::getSystemPathFromFileURL(execdir, sExecDir);
69
70
0
            OStringBuffer aBuffer("<?xml version=\"1.0\"?>\n<fontconfig><dir>");
71
0
            aBuffer.append(OUStringToOString(sExecDir, osl_getThreadTextEncoding()))
72
0
                   .append(OUStringToOString(getExecutableName(), osl_getThreadTextEncoding())).append(".fonts");
73
0
            aBuffer.append("</dir><cachedir>/tmp/cache/fontconfig</cachedir></fontconfig>");
74
0
            OString aConf = aBuffer.makeStringAndClear();
75
0
            sal_uInt64 aBytesWritten;
76
0
            aFontConfig.write(aConf.getStr(), aConf.getLength(), aBytesWritten);
77
            assert(aBytesWritten == aConf.getLength());
78
0
        }
79
2
        setenv("FONTCONFIG_FILE", "/tmp/wmffuzzerfonts.conf", 0);
80
2
    }
pdf2fodgfuzzer.cxx:(anonymous namespace)::setFontConfigConf(rtl::OUString const&)
Line
Count
Source
63
2
    {
64
2
        osl::File aFontConfig("file:///tmp/wmffuzzerfonts.conf");
65
2
        if (aFontConfig.open(osl_File_OpenFlag_Create | osl_File_OpenFlag_Write) == osl::File::E_None)
66
0
        {
67
0
            OUString sExecDir;
68
0
            osl::FileBase::getSystemPathFromFileURL(execdir, sExecDir);
69
70
0
            OStringBuffer aBuffer("<?xml version=\"1.0\"?>\n<fontconfig><dir>");
71
0
            aBuffer.append(OUStringToOString(sExecDir, osl_getThreadTextEncoding()))
72
0
                   .append(OUStringToOString(getExecutableName(), osl_getThreadTextEncoding())).append(".fonts");
73
0
            aBuffer.append("</dir><cachedir>/tmp/cache/fontconfig</cachedir></fontconfig>");
74
0
            OString aConf = aBuffer.makeStringAndClear();
75
0
            sal_uInt64 aBytesWritten;
76
0
            aFontConfig.write(aConf.getStr(), aConf.getLength(), aBytesWritten);
77
            assert(aBytesWritten == aConf.getLength());
78
0
        }
79
2
        setenv("FONTCONFIG_FILE", "/tmp/wmffuzzerfonts.conf", 0);
80
2
    }
giffuzzer.cxx:(anonymous namespace)::setFontConfigConf(rtl::OUString const&)
Line
Count
Source
63
1
    {
64
1
        osl::File aFontConfig("file:///tmp/wmffuzzerfonts.conf");
65
1
        if (aFontConfig.open(osl_File_OpenFlag_Create | osl_File_OpenFlag_Write) == osl::File::E_None)
66
0
        {
67
0
            OUString sExecDir;
68
0
            osl::FileBase::getSystemPathFromFileURL(execdir, sExecDir);
69
70
0
            OStringBuffer aBuffer("<?xml version=\"1.0\"?>\n<fontconfig><dir>");
71
0
            aBuffer.append(OUStringToOString(sExecDir, osl_getThreadTextEncoding()))
72
0
                   .append(OUStringToOString(getExecutableName(), osl_getThreadTextEncoding())).append(".fonts");
73
0
            aBuffer.append("</dir><cachedir>/tmp/cache/fontconfig</cachedir></fontconfig>");
74
0
            OString aConf = aBuffer.makeStringAndClear();
75
0
            sal_uInt64 aBytesWritten;
76
0
            aFontConfig.write(aConf.getStr(), aConf.getLength(), aBytesWritten);
77
            assert(aBytesWritten == aConf.getLength());
78
0
        }
79
1
        setenv("FONTCONFIG_FILE", "/tmp/wmffuzzerfonts.conf", 0);
80
1
    }
fodt2pdffuzzer.cxx:(anonymous namespace)::setFontConfigConf(rtl::OUString const&)
Line
Count
Source
63
2
    {
64
2
        osl::File aFontConfig("file:///tmp/wmffuzzerfonts.conf");
65
2
        if (aFontConfig.open(osl_File_OpenFlag_Create | osl_File_OpenFlag_Write) == osl::File::E_None)
66
0
        {
67
0
            OUString sExecDir;
68
0
            osl::FileBase::getSystemPathFromFileURL(execdir, sExecDir);
69
70
0
            OStringBuffer aBuffer("<?xml version=\"1.0\"?>\n<fontconfig><dir>");
71
0
            aBuffer.append(OUStringToOString(sExecDir, osl_getThreadTextEncoding()))
72
0
                   .append(OUStringToOString(getExecutableName(), osl_getThreadTextEncoding())).append(".fonts");
73
0
            aBuffer.append("</dir><cachedir>/tmp/cache/fontconfig</cachedir></fontconfig>");
74
0
            OString aConf = aBuffer.makeStringAndClear();
75
0
            sal_uInt64 aBytesWritten;
76
0
            aFontConfig.write(aConf.getStr(), aConf.getLength(), aBytesWritten);
77
            assert(aBytesWritten == aConf.getLength());
78
0
        }
79
2
        setenv("FONTCONFIG_FILE", "/tmp/wmffuzzerfonts.conf", 0);
80
2
    }
pptxfuzzer.cxx:(anonymous namespace)::setFontConfigConf(rtl::OUString const&)
Line
Count
Source
63
2
    {
64
2
        osl::File aFontConfig("file:///tmp/wmffuzzerfonts.conf");
65
2
        if (aFontConfig.open(osl_File_OpenFlag_Create | osl_File_OpenFlag_Write) == osl::File::E_None)
66
0
        {
67
0
            OUString sExecDir;
68
0
            osl::FileBase::getSystemPathFromFileURL(execdir, sExecDir);
69
70
0
            OStringBuffer aBuffer("<?xml version=\"1.0\"?>\n<fontconfig><dir>");
71
0
            aBuffer.append(OUStringToOString(sExecDir, osl_getThreadTextEncoding()))
72
0
                   .append(OUStringToOString(getExecutableName(), osl_getThreadTextEncoding())).append(".fonts");
73
0
            aBuffer.append("</dir><cachedir>/tmp/cache/fontconfig</cachedir></fontconfig>");
74
0
            OString aConf = aBuffer.makeStringAndClear();
75
0
            sal_uInt64 aBytesWritten;
76
0
            aFontConfig.write(aConf.getStr(), aConf.getLength(), aBytesWritten);
77
            assert(aBytesWritten == aConf.getLength());
78
0
        }
79
2
        setenv("FONTCONFIG_FILE", "/tmp/wmffuzzerfonts.conf", 0);
80
2
    }
dbffuzzer.cxx:(anonymous namespace)::setFontConfigConf(rtl::OUString const&)
Line
Count
Source
63
2
    {
64
2
        osl::File aFontConfig("file:///tmp/wmffuzzerfonts.conf");
65
2
        if (aFontConfig.open(osl_File_OpenFlag_Create | osl_File_OpenFlag_Write) == osl::File::E_None)
66
0
        {
67
0
            OUString sExecDir;
68
0
            osl::FileBase::getSystemPathFromFileURL(execdir, sExecDir);
69
70
0
            OStringBuffer aBuffer("<?xml version=\"1.0\"?>\n<fontconfig><dir>");
71
0
            aBuffer.append(OUStringToOString(sExecDir, osl_getThreadTextEncoding()))
72
0
                   .append(OUStringToOString(getExecutableName(), osl_getThreadTextEncoding())).append(".fonts");
73
0
            aBuffer.append("</dir><cachedir>/tmp/cache/fontconfig</cachedir></fontconfig>");
74
0
            OString aConf = aBuffer.makeStringAndClear();
75
0
            sal_uInt64 aBytesWritten;
76
0
            aFontConfig.write(aConf.getStr(), aConf.getLength(), aBytesWritten);
77
            assert(aBytesWritten == aConf.getLength());
78
0
        }
79
2
        setenv("FONTCONFIG_FILE", "/tmp/wmffuzzerfonts.conf", 0);
80
2
    }
scrtffuzzer.cxx:(anonymous namespace)::setFontConfigConf(rtl::OUString const&)
Line
Count
Source
63
2
    {
64
2
        osl::File aFontConfig("file:///tmp/wmffuzzerfonts.conf");
65
2
        if (aFontConfig.open(osl_File_OpenFlag_Create | osl_File_OpenFlag_Write) == osl::File::E_None)
66
0
        {
67
0
            OUString sExecDir;
68
0
            osl::FileBase::getSystemPathFromFileURL(execdir, sExecDir);
69
70
0
            OStringBuffer aBuffer("<?xml version=\"1.0\"?>\n<fontconfig><dir>");
71
0
            aBuffer.append(OUStringToOString(sExecDir, osl_getThreadTextEncoding()))
72
0
                   .append(OUStringToOString(getExecutableName(), osl_getThreadTextEncoding())).append(".fonts");
73
0
            aBuffer.append("</dir><cachedir>/tmp/cache/fontconfig</cachedir></fontconfig>");
74
0
            OString aConf = aBuffer.makeStringAndClear();
75
0
            sal_uInt64 aBytesWritten;
76
0
            aFontConfig.write(aConf.getStr(), aConf.getLength(), aBytesWritten);
77
            assert(aBytesWritten == aConf.getLength());
78
0
        }
79
2
        setenv("FONTCONFIG_FILE", "/tmp/wmffuzzerfonts.conf", 0);
80
2
    }
pctfuzzer.cxx:(anonymous namespace)::setFontConfigConf(rtl::OUString const&)
Line
Count
Source
63
2
    {
64
2
        osl::File aFontConfig("file:///tmp/wmffuzzerfonts.conf");
65
2
        if (aFontConfig.open(osl_File_OpenFlag_Create | osl_File_OpenFlag_Write) == osl::File::E_None)
66
0
        {
67
0
            OUString sExecDir;
68
0
            osl::FileBase::getSystemPathFromFileURL(execdir, sExecDir);
69
70
0
            OStringBuffer aBuffer("<?xml version=\"1.0\"?>\n<fontconfig><dir>");
71
0
            aBuffer.append(OUStringToOString(sExecDir, osl_getThreadTextEncoding()))
72
0
                   .append(OUStringToOString(getExecutableName(), osl_getThreadTextEncoding())).append(".fonts");
73
0
            aBuffer.append("</dir><cachedir>/tmp/cache/fontconfig</cachedir></fontconfig>");
74
0
            OString aConf = aBuffer.makeStringAndClear();
75
0
            sal_uInt64 aBytesWritten;
76
0
            aFontConfig.write(aConf.getStr(), aConf.getLength(), aBytesWritten);
77
            assert(aBytesWritten == aConf.getLength());
78
0
        }
79
2
        setenv("FONTCONFIG_FILE", "/tmp/wmffuzzerfonts.conf", 0);
80
2
    }
lwpfuzzer.cxx:(anonymous namespace)::setFontConfigConf(rtl::OUString const&)
Line
Count
Source
63
2
    {
64
2
        osl::File aFontConfig("file:///tmp/wmffuzzerfonts.conf");
65
2
        if (aFontConfig.open(osl_File_OpenFlag_Create | osl_File_OpenFlag_Write) == osl::File::E_None)
66
0
        {
67
0
            OUString sExecDir;
68
0
            osl::FileBase::getSystemPathFromFileURL(execdir, sExecDir);
69
70
0
            OStringBuffer aBuffer("<?xml version=\"1.0\"?>\n<fontconfig><dir>");
71
0
            aBuffer.append(OUStringToOString(sExecDir, osl_getThreadTextEncoding()))
72
0
                   .append(OUStringToOString(getExecutableName(), osl_getThreadTextEncoding())).append(".fonts");
73
0
            aBuffer.append("</dir><cachedir>/tmp/cache/fontconfig</cachedir></fontconfig>");
74
0
            OString aConf = aBuffer.makeStringAndClear();
75
0
            sal_uInt64 aBytesWritten;
76
0
            aFontConfig.write(aConf.getStr(), aConf.getLength(), aBytesWritten);
77
            assert(aBytesWritten == aConf.getLength());
78
0
        }
79
2
        setenv("FONTCONFIG_FILE", "/tmp/wmffuzzerfonts.conf", 0);
80
2
    }
zipfuzzer.cxx:(anonymous namespace)::setFontConfigConf(rtl::OUString const&)
Line
Count
Source
63
2
    {
64
2
        osl::File aFontConfig("file:///tmp/wmffuzzerfonts.conf");
65
2
        if (aFontConfig.open(osl_File_OpenFlag_Create | osl_File_OpenFlag_Write) == osl::File::E_None)
66
0
        {
67
0
            OUString sExecDir;
68
0
            osl::FileBase::getSystemPathFromFileURL(execdir, sExecDir);
69
70
0
            OStringBuffer aBuffer("<?xml version=\"1.0\"?>\n<fontconfig><dir>");
71
0
            aBuffer.append(OUStringToOString(sExecDir, osl_getThreadTextEncoding()))
72
0
                   .append(OUStringToOString(getExecutableName(), osl_getThreadTextEncoding())).append(".fonts");
73
0
            aBuffer.append("</dir><cachedir>/tmp/cache/fontconfig</cachedir></fontconfig>");
74
0
            OString aConf = aBuffer.makeStringAndClear();
75
0
            sal_uInt64 aBytesWritten;
76
0
            aFontConfig.write(aConf.getStr(), aConf.getLength(), aBytesWritten);
77
            assert(aBytesWritten == aConf.getLength());
78
0
        }
79
2
        setenv("FONTCONFIG_FILE", "/tmp/wmffuzzerfonts.conf", 0);
80
2
    }
xbmfuzzer.cxx:(anonymous namespace)::setFontConfigConf(rtl::OUString const&)
Line
Count
Source
63
2
    {
64
2
        osl::File aFontConfig("file:///tmp/wmffuzzerfonts.conf");
65
2
        if (aFontConfig.open(osl_File_OpenFlag_Create | osl_File_OpenFlag_Write) == osl::File::E_None)
66
0
        {
67
0
            OUString sExecDir;
68
0
            osl::FileBase::getSystemPathFromFileURL(execdir, sExecDir);
69
70
0
            OStringBuffer aBuffer("<?xml version=\"1.0\"?>\n<fontconfig><dir>");
71
0
            aBuffer.append(OUStringToOString(sExecDir, osl_getThreadTextEncoding()))
72
0
                   .append(OUStringToOString(getExecutableName(), osl_getThreadTextEncoding())).append(".fonts");
73
0
            aBuffer.append("</dir><cachedir>/tmp/cache/fontconfig</cachedir></fontconfig>");
74
0
            OString aConf = aBuffer.makeStringAndClear();
75
0
            sal_uInt64 aBytesWritten;
76
0
            aFontConfig.write(aConf.getStr(), aConf.getLength(), aBytesWritten);
77
            assert(aBytesWritten == aConf.getLength());
78
0
        }
79
2
        setenv("FONTCONFIG_FILE", "/tmp/wmffuzzerfonts.conf", 0);
80
2
    }
cgmfuzzer.cxx:(anonymous namespace)::setFontConfigConf(rtl::OUString const&)
Line
Count
Source
63
1
    {
64
1
        osl::File aFontConfig("file:///tmp/wmffuzzerfonts.conf");
65
1
        if (aFontConfig.open(osl_File_OpenFlag_Create | osl_File_OpenFlag_Write) == osl::File::E_None)
66
0
        {
67
0
            OUString sExecDir;
68
0
            osl::FileBase::getSystemPathFromFileURL(execdir, sExecDir);
69
70
0
            OStringBuffer aBuffer("<?xml version=\"1.0\"?>\n<fontconfig><dir>");
71
0
            aBuffer.append(OUStringToOString(sExecDir, osl_getThreadTextEncoding()))
72
0
                   .append(OUStringToOString(getExecutableName(), osl_getThreadTextEncoding())).append(".fonts");
73
0
            aBuffer.append("</dir><cachedir>/tmp/cache/fontconfig</cachedir></fontconfig>");
74
0
            OString aConf = aBuffer.makeStringAndClear();
75
0
            sal_uInt64 aBytesWritten;
76
0
            aFontConfig.write(aConf.getStr(), aConf.getLength(), aBytesWritten);
77
            assert(aBytesWritten == aConf.getLength());
78
0
        }
79
1
        setenv("FONTCONFIG_FILE", "/tmp/wmffuzzerfonts.conf", 0);
80
1
    }
htmlfuzzer.cxx:(anonymous namespace)::setFontConfigConf(rtl::OUString const&)
Line
Count
Source
63
2
    {
64
2
        osl::File aFontConfig("file:///tmp/wmffuzzerfonts.conf");
65
2
        if (aFontConfig.open(osl_File_OpenFlag_Create | osl_File_OpenFlag_Write) == osl::File::E_None)
66
0
        {
67
0
            OUString sExecDir;
68
0
            osl::FileBase::getSystemPathFromFileURL(execdir, sExecDir);
69
70
0
            OStringBuffer aBuffer("<?xml version=\"1.0\"?>\n<fontconfig><dir>");
71
0
            aBuffer.append(OUStringToOString(sExecDir, osl_getThreadTextEncoding()))
72
0
                   .append(OUStringToOString(getExecutableName(), osl_getThreadTextEncoding())).append(".fonts");
73
0
            aBuffer.append("</dir><cachedir>/tmp/cache/fontconfig</cachedir></fontconfig>");
74
0
            OString aConf = aBuffer.makeStringAndClear();
75
0
            sal_uInt64 aBytesWritten;
76
0
            aFontConfig.write(aConf.getStr(), aConf.getLength(), aBytesWritten);
77
            assert(aBytesWritten == aConf.getLength());
78
0
        }
79
2
        setenv("FONTCONFIG_FILE", "/tmp/wmffuzzerfonts.conf", 0);
80
2
    }
602fuzzer.cxx:(anonymous namespace)::setFontConfigConf(rtl::OUString const&)
Line
Count
Source
63
2
    {
64
2
        osl::File aFontConfig("file:///tmp/wmffuzzerfonts.conf");
65
2
        if (aFontConfig.open(osl_File_OpenFlag_Create | osl_File_OpenFlag_Write) == osl::File::E_None)
66
0
        {
67
0
            OUString sExecDir;
68
0
            osl::FileBase::getSystemPathFromFileURL(execdir, sExecDir);
69
70
0
            OStringBuffer aBuffer("<?xml version=\"1.0\"?>\n<fontconfig><dir>");
71
0
            aBuffer.append(OUStringToOString(sExecDir, osl_getThreadTextEncoding()))
72
0
                   .append(OUStringToOString(getExecutableName(), osl_getThreadTextEncoding())).append(".fonts");
73
0
            aBuffer.append("</dir><cachedir>/tmp/cache/fontconfig</cachedir></fontconfig>");
74
0
            OString aConf = aBuffer.makeStringAndClear();
75
0
            sal_uInt64 aBytesWritten;
76
0
            aFontConfig.write(aConf.getStr(), aConf.getLength(), aBytesWritten);
77
            assert(aBytesWritten == aConf.getLength());
78
0
        }
79
2
        setenv("FONTCONFIG_FILE", "/tmp/wmffuzzerfonts.conf", 0);
80
2
    }
pcxfuzzer.cxx:(anonymous namespace)::setFontConfigConf(rtl::OUString const&)
Line
Count
Source
63
2
    {
64
2
        osl::File aFontConfig("file:///tmp/wmffuzzerfonts.conf");
65
2
        if (aFontConfig.open(osl_File_OpenFlag_Create | osl_File_OpenFlag_Write) == osl::File::E_None)
66
0
        {
67
0
            OUString sExecDir;
68
0
            osl::FileBase::getSystemPathFromFileURL(execdir, sExecDir);
69
70
0
            OStringBuffer aBuffer("<?xml version=\"1.0\"?>\n<fontconfig><dir>");
71
0
            aBuffer.append(OUStringToOString(sExecDir, osl_getThreadTextEncoding()))
72
0
                   .append(OUStringToOString(getExecutableName(), osl_getThreadTextEncoding())).append(".fonts");
73
0
            aBuffer.append("</dir><cachedir>/tmp/cache/fontconfig</cachedir></fontconfig>");
74
0
            OString aConf = aBuffer.makeStringAndClear();
75
0
            sal_uInt64 aBytesWritten;
76
0
            aFontConfig.write(aConf.getStr(), aConf.getLength(), aBytesWritten);
77
            assert(aBytesWritten == aConf.getLength());
78
0
        }
79
2
        setenv("FONTCONFIG_FILE", "/tmp/wmffuzzerfonts.conf", 0);
80
2
    }
sftfuzzer.cxx:(anonymous namespace)::setFontConfigConf(rtl::OUString const&)
Line
Count
Source
63
2
    {
64
2
        osl::File aFontConfig("file:///tmp/wmffuzzerfonts.conf");
65
2
        if (aFontConfig.open(osl_File_OpenFlag_Create | osl_File_OpenFlag_Write) == osl::File::E_None)
66
0
        {
67
0
            OUString sExecDir;
68
0
            osl::FileBase::getSystemPathFromFileURL(execdir, sExecDir);
69
70
0
            OStringBuffer aBuffer("<?xml version=\"1.0\"?>\n<fontconfig><dir>");
71
0
            aBuffer.append(OUStringToOString(sExecDir, osl_getThreadTextEncoding()))
72
0
                   .append(OUStringToOString(getExecutableName(), osl_getThreadTextEncoding())).append(".fonts");
73
0
            aBuffer.append("</dir><cachedir>/tmp/cache/fontconfig</cachedir></fontconfig>");
74
0
            OString aConf = aBuffer.makeStringAndClear();
75
0
            sal_uInt64 aBytesWritten;
76
0
            aFontConfig.write(aConf.getStr(), aConf.getLength(), aBytesWritten);
77
            assert(aBytesWritten == aConf.getLength());
78
0
        }
79
2
        setenv("FONTCONFIG_FILE", "/tmp/wmffuzzerfonts.conf", 0);
80
2
    }
eotfuzzer.cxx:(anonymous namespace)::setFontConfigConf(rtl::OUString const&)
Line
Count
Source
63
2
    {
64
2
        osl::File aFontConfig("file:///tmp/wmffuzzerfonts.conf");
65
2
        if (aFontConfig.open(osl_File_OpenFlag_Create | osl_File_OpenFlag_Write) == osl::File::E_None)
66
0
        {
67
0
            OUString sExecDir;
68
0
            osl::FileBase::getSystemPathFromFileURL(execdir, sExecDir);
69
70
0
            OStringBuffer aBuffer("<?xml version=\"1.0\"?>\n<fontconfig><dir>");
71
0
            aBuffer.append(OUStringToOString(sExecDir, osl_getThreadTextEncoding()))
72
0
                   .append(OUStringToOString(getExecutableName(), osl_getThreadTextEncoding())).append(".fonts");
73
0
            aBuffer.append("</dir><cachedir>/tmp/cache/fontconfig</cachedir></fontconfig>");
74
0
            OString aConf = aBuffer.makeStringAndClear();
75
0
            sal_uInt64 aBytesWritten;
76
0
            aFontConfig.write(aConf.getStr(), aConf.getLength(), aBytesWritten);
77
            assert(aBytesWritten == aConf.getLength());
78
0
        }
79
2
        setenv("FONTCONFIG_FILE", "/tmp/wmffuzzerfonts.conf", 0);
80
2
    }
wksfuzzer.cxx:(anonymous namespace)::setFontConfigConf(rtl::OUString const&)
Line
Count
Source
63
2
    {
64
2
        osl::File aFontConfig("file:///tmp/wmffuzzerfonts.conf");
65
2
        if (aFontConfig.open(osl_File_OpenFlag_Create | osl_File_OpenFlag_Write) == osl::File::E_None)
66
0
        {
67
0
            OUString sExecDir;
68
0
            osl::FileBase::getSystemPathFromFileURL(execdir, sExecDir);
69
70
0
            OStringBuffer aBuffer("<?xml version=\"1.0\"?>\n<fontconfig><dir>");
71
0
            aBuffer.append(OUStringToOString(sExecDir, osl_getThreadTextEncoding()))
72
0
                   .append(OUStringToOString(getExecutableName(), osl_getThreadTextEncoding())).append(".fonts");
73
0
            aBuffer.append("</dir><cachedir>/tmp/cache/fontconfig</cachedir></fontconfig>");
74
0
            OString aConf = aBuffer.makeStringAndClear();
75
0
            sal_uInt64 aBytesWritten;
76
0
            aFontConfig.write(aConf.getStr(), aConf.getLength(), aBytesWritten);
77
            assert(aBytesWritten == aConf.getLength());
78
0
        }
79
2
        setenv("FONTCONFIG_FILE", "/tmp/wmffuzzerfonts.conf", 0);
80
2
    }
pcdfuzzer.cxx:(anonymous namespace)::setFontConfigConf(rtl::OUString const&)
Line
Count
Source
63
2
    {
64
2
        osl::File aFontConfig("file:///tmp/wmffuzzerfonts.conf");
65
2
        if (aFontConfig.open(osl_File_OpenFlag_Create | osl_File_OpenFlag_Write) == osl::File::E_None)
66
0
        {
67
0
            OUString sExecDir;
68
0
            osl::FileBase::getSystemPathFromFileURL(execdir, sExecDir);
69
70
0
            OStringBuffer aBuffer("<?xml version=\"1.0\"?>\n<fontconfig><dir>");
71
0
            aBuffer.append(OUStringToOString(sExecDir, osl_getThreadTextEncoding()))
72
0
                   .append(OUStringToOString(getExecutableName(), osl_getThreadTextEncoding())).append(".fonts");
73
0
            aBuffer.append("</dir><cachedir>/tmp/cache/fontconfig</cachedir></fontconfig>");
74
0
            OString aConf = aBuffer.makeStringAndClear();
75
0
            sal_uInt64 aBytesWritten;
76
0
            aFontConfig.write(aConf.getStr(), aConf.getLength(), aBytesWritten);
77
            assert(aBytesWritten == aConf.getLength());
78
0
        }
79
2
        setenv("FONTCONFIG_FILE", "/tmp/wmffuzzerfonts.conf", 0);
80
2
    }
mmlfuzzer.cxx:(anonymous namespace)::setFontConfigConf(rtl::OUString const&)
Line
Count
Source
63
2
    {
64
2
        osl::File aFontConfig("file:///tmp/wmffuzzerfonts.conf");
65
2
        if (aFontConfig.open(osl_File_OpenFlag_Create | osl_File_OpenFlag_Write) == osl::File::E_None)
66
0
        {
67
0
            OUString sExecDir;
68
0
            osl::FileBase::getSystemPathFromFileURL(execdir, sExecDir);
69
70
0
            OStringBuffer aBuffer("<?xml version=\"1.0\"?>\n<fontconfig><dir>");
71
0
            aBuffer.append(OUStringToOString(sExecDir, osl_getThreadTextEncoding()))
72
0
                   .append(OUStringToOString(getExecutableName(), osl_getThreadTextEncoding())).append(".fonts");
73
0
            aBuffer.append("</dir><cachedir>/tmp/cache/fontconfig</cachedir></fontconfig>");
74
0
            OString aConf = aBuffer.makeStringAndClear();
75
0
            sal_uInt64 aBytesWritten;
76
0
            aFontConfig.write(aConf.getStr(), aConf.getLength(), aBytesWritten);
77
            assert(aBytesWritten == aConf.getLength());
78
0
        }
79
2
        setenv("FONTCONFIG_FILE", "/tmp/wmffuzzerfonts.conf", 0);
80
2
    }
ww2fuzzer.cxx:(anonymous namespace)::setFontConfigConf(rtl::OUString const&)
Line
Count
Source
63
2
    {
64
2
        osl::File aFontConfig("file:///tmp/wmffuzzerfonts.conf");
65
2
        if (aFontConfig.open(osl_File_OpenFlag_Create | osl_File_OpenFlag_Write) == osl::File::E_None)
66
0
        {
67
0
            OUString sExecDir;
68
0
            osl::FileBase::getSystemPathFromFileURL(execdir, sExecDir);
69
70
0
            OStringBuffer aBuffer("<?xml version=\"1.0\"?>\n<fontconfig><dir>");
71
0
            aBuffer.append(OUStringToOString(sExecDir, osl_getThreadTextEncoding()))
72
0
                   .append(OUStringToOString(getExecutableName(), osl_getThreadTextEncoding())).append(".fonts");
73
0
            aBuffer.append("</dir><cachedir>/tmp/cache/fontconfig</cachedir></fontconfig>");
74
0
            OString aConf = aBuffer.makeStringAndClear();
75
0
            sal_uInt64 aBytesWritten;
76
0
            aFontConfig.write(aConf.getStr(), aConf.getLength(), aBytesWritten);
77
            assert(aBytesWritten == aConf.getLength());
78
0
        }
79
2
        setenv("FONTCONFIG_FILE", "/tmp/wmffuzzerfonts.conf", 0);
80
2
    }
diffuzzer.cxx:(anonymous namespace)::setFontConfigConf(rtl::OUString const&)
Line
Count
Source
63
2
    {
64
2
        osl::File aFontConfig("file:///tmp/wmffuzzerfonts.conf");
65
2
        if (aFontConfig.open(osl_File_OpenFlag_Create | osl_File_OpenFlag_Write) == osl::File::E_None)
66
0
        {
67
0
            OUString sExecDir;
68
0
            osl::FileBase::getSystemPathFromFileURL(execdir, sExecDir);
69
70
0
            OStringBuffer aBuffer("<?xml version=\"1.0\"?>\n<fontconfig><dir>");
71
0
            aBuffer.append(OUStringToOString(sExecDir, osl_getThreadTextEncoding()))
72
0
                   .append(OUStringToOString(getExecutableName(), osl_getThreadTextEncoding())).append(".fonts");
73
0
            aBuffer.append("</dir><cachedir>/tmp/cache/fontconfig</cachedir></fontconfig>");
74
0
            OString aConf = aBuffer.makeStringAndClear();
75
0
            sal_uInt64 aBytesWritten;
76
0
            aFontConfig.write(aConf.getStr(), aConf.getLength(), aBytesWritten);
77
            assert(aBytesWritten == aConf.getLength());
78
0
        }
79
2
        setenv("FONTCONFIG_FILE", "/tmp/wmffuzzerfonts.conf", 0);
80
2
    }
ww6fuzzer.cxx:(anonymous namespace)::setFontConfigConf(rtl::OUString const&)
Line
Count
Source
63
2
    {
64
2
        osl::File aFontConfig("file:///tmp/wmffuzzerfonts.conf");
65
2
        if (aFontConfig.open(osl_File_OpenFlag_Create | osl_File_OpenFlag_Write) == osl::File::E_None)
66
0
        {
67
0
            OUString sExecDir;
68
0
            osl::FileBase::getSystemPathFromFileURL(execdir, sExecDir);
69
70
0
            OStringBuffer aBuffer("<?xml version=\"1.0\"?>\n<fontconfig><dir>");
71
0
            aBuffer.append(OUStringToOString(sExecDir, osl_getThreadTextEncoding()))
72
0
                   .append(OUStringToOString(getExecutableName(), osl_getThreadTextEncoding())).append(".fonts");
73
0
            aBuffer.append("</dir><cachedir>/tmp/cache/fontconfig</cachedir></fontconfig>");
74
0
            OString aConf = aBuffer.makeStringAndClear();
75
0
            sal_uInt64 aBytesWritten;
76
0
            aFontConfig.write(aConf.getStr(), aConf.getLength(), aBytesWritten);
77
            assert(aBytesWritten == aConf.getLength());
78
0
        }
79
2
        setenv("FONTCONFIG_FILE", "/tmp/wmffuzzerfonts.conf", 0);
80
2
    }
docxfuzzer.cxx:(anonymous namespace)::setFontConfigConf(rtl::OUString const&)
Line
Count
Source
63
2
    {
64
2
        osl::File aFontConfig("file:///tmp/wmffuzzerfonts.conf");
65
2
        if (aFontConfig.open(osl_File_OpenFlag_Create | osl_File_OpenFlag_Write) == osl::File::E_None)
66
0
        {
67
0
            OUString sExecDir;
68
0
            osl::FileBase::getSystemPathFromFileURL(execdir, sExecDir);
69
70
0
            OStringBuffer aBuffer("<?xml version=\"1.0\"?>\n<fontconfig><dir>");
71
0
            aBuffer.append(OUStringToOString(sExecDir, osl_getThreadTextEncoding()))
72
0
                   .append(OUStringToOString(getExecutableName(), osl_getThreadTextEncoding())).append(".fonts");
73
0
            aBuffer.append("</dir><cachedir>/tmp/cache/fontconfig</cachedir></fontconfig>");
74
0
            OString aConf = aBuffer.makeStringAndClear();
75
0
            sal_uInt64 aBytesWritten;
76
0
            aFontConfig.write(aConf.getStr(), aConf.getLength(), aBytesWritten);
77
            assert(aBytesWritten == aConf.getLength());
78
0
        }
79
2
        setenv("FONTCONFIG_FILE", "/tmp/wmffuzzerfonts.conf", 0);
80
2
    }
psdfuzzer.cxx:(anonymous namespace)::setFontConfigConf(rtl::OUString const&)
Line
Count
Source
63
2
    {
64
2
        osl::File aFontConfig("file:///tmp/wmffuzzerfonts.conf");
65
2
        if (aFontConfig.open(osl_File_OpenFlag_Create | osl_File_OpenFlag_Write) == osl::File::E_None)
66
0
        {
67
0
            OUString sExecDir;
68
0
            osl::FileBase::getSystemPathFromFileURL(execdir, sExecDir);
69
70
0
            OStringBuffer aBuffer("<?xml version=\"1.0\"?>\n<fontconfig><dir>");
71
0
            aBuffer.append(OUStringToOString(sExecDir, osl_getThreadTextEncoding()))
72
0
                   .append(OUStringToOString(getExecutableName(), osl_getThreadTextEncoding())).append(".fonts");
73
0
            aBuffer.append("</dir><cachedir>/tmp/cache/fontconfig</cachedir></fontconfig>");
74
0
            OString aConf = aBuffer.makeStringAndClear();
75
0
            sal_uInt64 aBytesWritten;
76
0
            aFontConfig.write(aConf.getStr(), aConf.getLength(), aBytesWritten);
77
            assert(aBytesWritten == aConf.getLength());
78
0
        }
79
2
        setenv("FONTCONFIG_FILE", "/tmp/wmffuzzerfonts.conf", 0);
80
2
    }
tiffuzzer.cxx:(anonymous namespace)::setFontConfigConf(rtl::OUString const&)
Line
Count
Source
63
2
    {
64
2
        osl::File aFontConfig("file:///tmp/wmffuzzerfonts.conf");
65
2
        if (aFontConfig.open(osl_File_OpenFlag_Create | osl_File_OpenFlag_Write) == osl::File::E_None)
66
0
        {
67
0
            OUString sExecDir;
68
0
            osl::FileBase::getSystemPathFromFileURL(execdir, sExecDir);
69
70
0
            OStringBuffer aBuffer("<?xml version=\"1.0\"?>\n<fontconfig><dir>");
71
0
            aBuffer.append(OUStringToOString(sExecDir, osl_getThreadTextEncoding()))
72
0
                   .append(OUStringToOString(getExecutableName(), osl_getThreadTextEncoding())).append(".fonts");
73
0
            aBuffer.append("</dir><cachedir>/tmp/cache/fontconfig</cachedir></fontconfig>");
74
0
            OString aConf = aBuffer.makeStringAndClear();
75
0
            sal_uInt64 aBytesWritten;
76
0
            aFontConfig.write(aConf.getStr(), aConf.getLength(), aBytesWritten);
77
            assert(aBytesWritten == aConf.getLength());
78
0
        }
79
2
        setenv("FONTCONFIG_FILE", "/tmp/wmffuzzerfonts.conf", 0);
80
2
    }
svgfuzzer.cxx:(anonymous namespace)::setFontConfigConf(rtl::OUString const&)
Line
Count
Source
63
2
    {
64
2
        osl::File aFontConfig("file:///tmp/wmffuzzerfonts.conf");
65
2
        if (aFontConfig.open(osl_File_OpenFlag_Create | osl_File_OpenFlag_Write) == osl::File::E_None)
66
0
        {
67
0
            OUString sExecDir;
68
0
            osl::FileBase::getSystemPathFromFileURL(execdir, sExecDir);
69
70
0
            OStringBuffer aBuffer("<?xml version=\"1.0\"?>\n<fontconfig><dir>");
71
0
            aBuffer.append(OUStringToOString(sExecDir, osl_getThreadTextEncoding()))
72
0
                   .append(OUStringToOString(getExecutableName(), osl_getThreadTextEncoding())).append(".fonts");
73
0
            aBuffer.append("</dir><cachedir>/tmp/cache/fontconfig</cachedir></fontconfig>");
74
0
            OString aConf = aBuffer.makeStringAndClear();
75
0
            sal_uInt64 aBytesWritten;
76
0
            aFontConfig.write(aConf.getStr(), aConf.getLength(), aBytesWritten);
77
            assert(aBytesWritten == aConf.getLength());
78
0
        }
79
2
        setenv("FONTCONFIG_FILE", "/tmp/wmffuzzerfonts.conf", 0);
80
2
    }
metfuzzer.cxx:(anonymous namespace)::setFontConfigConf(rtl::OUString const&)
Line
Count
Source
63
2
    {
64
2
        osl::File aFontConfig("file:///tmp/wmffuzzerfonts.conf");
65
2
        if (aFontConfig.open(osl_File_OpenFlag_Create | osl_File_OpenFlag_Write) == osl::File::E_None)
66
0
        {
67
0
            OUString sExecDir;
68
0
            osl::FileBase::getSystemPathFromFileURL(execdir, sExecDir);
69
70
0
            OStringBuffer aBuffer("<?xml version=\"1.0\"?>\n<fontconfig><dir>");
71
0
            aBuffer.append(OUStringToOString(sExecDir, osl_getThreadTextEncoding()))
72
0
                   .append(OUStringToOString(getExecutableName(), osl_getThreadTextEncoding())).append(".fonts");
73
0
            aBuffer.append("</dir><cachedir>/tmp/cache/fontconfig</cachedir></fontconfig>");
74
0
            OString aConf = aBuffer.makeStringAndClear();
75
0
            sal_uInt64 aBytesWritten;
76
0
            aFontConfig.write(aConf.getStr(), aConf.getLength(), aBytesWritten);
77
            assert(aBytesWritten == aConf.getLength());
78
0
        }
79
2
        setenv("FONTCONFIG_FILE", "/tmp/wmffuzzerfonts.conf", 0);
80
2
    }
epsfuzzer.cxx:(anonymous namespace)::setFontConfigConf(rtl::OUString const&)
Line
Count
Source
63
2
    {
64
2
        osl::File aFontConfig("file:///tmp/wmffuzzerfonts.conf");
65
2
        if (aFontConfig.open(osl_File_OpenFlag_Create | osl_File_OpenFlag_Write) == osl::File::E_None)
66
0
        {
67
0
            OUString sExecDir;
68
0
            osl::FileBase::getSystemPathFromFileURL(execdir, sExecDir);
69
70
0
            OStringBuffer aBuffer("<?xml version=\"1.0\"?>\n<fontconfig><dir>");
71
0
            aBuffer.append(OUStringToOString(sExecDir, osl_getThreadTextEncoding()))
72
0
                   .append(OUStringToOString(getExecutableName(), osl_getThreadTextEncoding())).append(".fonts");
73
0
            aBuffer.append("</dir><cachedir>/tmp/cache/fontconfig</cachedir></fontconfig>");
74
0
            OString aConf = aBuffer.makeStringAndClear();
75
0
            sal_uInt64 aBytesWritten;
76
0
            aFontConfig.write(aConf.getStr(), aConf.getLength(), aBytesWritten);
77
            assert(aBytesWritten == aConf.getLength());
78
0
        }
79
2
        setenv("FONTCONFIG_FILE", "/tmp/wmffuzzerfonts.conf", 0);
80
2
    }
fodpfuzzer.cxx:(anonymous namespace)::setFontConfigConf(rtl::OUString const&)
Line
Count
Source
63
2
    {
64
2
        osl::File aFontConfig("file:///tmp/wmffuzzerfonts.conf");
65
2
        if (aFontConfig.open(osl_File_OpenFlag_Create | osl_File_OpenFlag_Write) == osl::File::E_None)
66
0
        {
67
0
            OUString sExecDir;
68
0
            osl::FileBase::getSystemPathFromFileURL(execdir, sExecDir);
69
70
0
            OStringBuffer aBuffer("<?xml version=\"1.0\"?>\n<fontconfig><dir>");
71
0
            aBuffer.append(OUStringToOString(sExecDir, osl_getThreadTextEncoding()))
72
0
                   .append(OUStringToOString(getExecutableName(), osl_getThreadTextEncoding())).append(".fonts");
73
0
            aBuffer.append("</dir><cachedir>/tmp/cache/fontconfig</cachedir></fontconfig>");
74
0
            OString aConf = aBuffer.makeStringAndClear();
75
0
            sal_uInt64 aBytesWritten;
76
0
            aFontConfig.write(aConf.getStr(), aConf.getLength(), aBytesWritten);
77
            assert(aBytesWritten == aConf.getLength());
78
0
        }
79
2
        setenv("FONTCONFIG_FILE", "/tmp/wmffuzzerfonts.conf", 0);
80
2
    }
Unexecuted instantiation: mtpfuzzer.cxx:(anonymous namespace)::setFontConfigConf(rtl::OUString const&)
slkfuzzer.cxx:(anonymous namespace)::setFontConfigConf(rtl::OUString const&)
Line
Count
Source
63
2
    {
64
2
        osl::File aFontConfig("file:///tmp/wmffuzzerfonts.conf");
65
2
        if (aFontConfig.open(osl_File_OpenFlag_Create | osl_File_OpenFlag_Write) == osl::File::E_None)
66
0
        {
67
0
            OUString sExecDir;
68
0
            osl::FileBase::getSystemPathFromFileURL(execdir, sExecDir);
69
70
0
            OStringBuffer aBuffer("<?xml version=\"1.0\"?>\n<fontconfig><dir>");
71
0
            aBuffer.append(OUStringToOString(sExecDir, osl_getThreadTextEncoding()))
72
0
                   .append(OUStringToOString(getExecutableName(), osl_getThreadTextEncoding())).append(".fonts");
73
0
            aBuffer.append("</dir><cachedir>/tmp/cache/fontconfig</cachedir></fontconfig>");
74
0
            OString aConf = aBuffer.makeStringAndClear();
75
0
            sal_uInt64 aBytesWritten;
76
0
            aFontConfig.write(aConf.getStr(), aConf.getLength(), aBytesWritten);
77
            assert(aBytesWritten == aConf.getLength());
78
0
        }
79
2
        setenv("FONTCONFIG_FILE", "/tmp/wmffuzzerfonts.conf", 0);
80
2
    }
webpfuzzer.cxx:(anonymous namespace)::setFontConfigConf(rtl::OUString const&)
Line
Count
Source
63
2
    {
64
2
        osl::File aFontConfig("file:///tmp/wmffuzzerfonts.conf");
65
2
        if (aFontConfig.open(osl_File_OpenFlag_Create | osl_File_OpenFlag_Write) == osl::File::E_None)
66
0
        {
67
0
            OUString sExecDir;
68
0
            osl::FileBase::getSystemPathFromFileURL(execdir, sExecDir);
69
70
0
            OStringBuffer aBuffer("<?xml version=\"1.0\"?>\n<fontconfig><dir>");
71
0
            aBuffer.append(OUStringToOString(sExecDir, osl_getThreadTextEncoding()))
72
0
                   .append(OUStringToOString(getExecutableName(), osl_getThreadTextEncoding())).append(".fonts");
73
0
            aBuffer.append("</dir><cachedir>/tmp/cache/fontconfig</cachedir></fontconfig>");
74
0
            OString aConf = aBuffer.makeStringAndClear();
75
0
            sal_uInt64 aBytesWritten;
76
0
            aFontConfig.write(aConf.getStr(), aConf.getLength(), aBytesWritten);
77
            assert(aBytesWritten == aConf.getLength());
78
0
        }
79
2
        setenv("FONTCONFIG_FILE", "/tmp/wmffuzzerfonts.conf", 0);
80
2
    }
tgafuzzer.cxx:(anonymous namespace)::setFontConfigConf(rtl::OUString const&)
Line
Count
Source
63
2
    {
64
2
        osl::File aFontConfig("file:///tmp/wmffuzzerfonts.conf");
65
2
        if (aFontConfig.open(osl_File_OpenFlag_Create | osl_File_OpenFlag_Write) == osl::File::E_None)
66
0
        {
67
0
            OUString sExecDir;
68
0
            osl::FileBase::getSystemPathFromFileURL(execdir, sExecDir);
69
70
0
            OStringBuffer aBuffer("<?xml version=\"1.0\"?>\n<fontconfig><dir>");
71
0
            aBuffer.append(OUStringToOString(sExecDir, osl_getThreadTextEncoding()))
72
0
                   .append(OUStringToOString(getExecutableName(), osl_getThreadTextEncoding())).append(".fonts");
73
0
            aBuffer.append("</dir><cachedir>/tmp/cache/fontconfig</cachedir></fontconfig>");
74
0
            OString aConf = aBuffer.makeStringAndClear();
75
0
            sal_uInt64 aBytesWritten;
76
0
            aFontConfig.write(aConf.getStr(), aConf.getLength(), aBytesWritten);
77
            assert(aBytesWritten == aConf.getLength());
78
0
        }
79
2
        setenv("FONTCONFIG_FILE", "/tmp/wmffuzzerfonts.conf", 0);
80
2
    }
svmfuzzer.cxx:(anonymous namespace)::setFontConfigConf(rtl::OUString const&)
Line
Count
Source
63
2
    {
64
2
        osl::File aFontConfig("file:///tmp/wmffuzzerfonts.conf");
65
2
        if (aFontConfig.open(osl_File_OpenFlag_Create | osl_File_OpenFlag_Write) == osl::File::E_None)
66
0
        {
67
0
            OUString sExecDir;
68
0
            osl::FileBase::getSystemPathFromFileURL(execdir, sExecDir);
69
70
0
            OStringBuffer aBuffer("<?xml version=\"1.0\"?>\n<fontconfig><dir>");
71
0
            aBuffer.append(OUStringToOString(sExecDir, osl_getThreadTextEncoding()))
72
0
                   .append(OUStringToOString(getExecutableName(), osl_getThreadTextEncoding())).append(".fonts");
73
0
            aBuffer.append("</dir><cachedir>/tmp/cache/fontconfig</cachedir></fontconfig>");
74
0
            OString aConf = aBuffer.makeStringAndClear();
75
0
            sal_uInt64 aBytesWritten;
76
0
            aFontConfig.write(aConf.getStr(), aConf.getLength(), aBytesWritten);
77
            assert(aBytesWritten == aConf.getLength());
78
0
        }
79
2
        setenv("FONTCONFIG_FILE", "/tmp/wmffuzzerfonts.conf", 0);
80
2
    }
fodtfuzzer.cxx:(anonymous namespace)::setFontConfigConf(rtl::OUString const&)
Line
Count
Source
63
2
    {
64
2
        osl::File aFontConfig("file:///tmp/wmffuzzerfonts.conf");
65
2
        if (aFontConfig.open(osl_File_OpenFlag_Create | osl_File_OpenFlag_Write) == osl::File::E_None)
66
0
        {
67
0
            OUString sExecDir;
68
0
            osl::FileBase::getSystemPathFromFileURL(execdir, sExecDir);
69
70
0
            OStringBuffer aBuffer("<?xml version=\"1.0\"?>\n<fontconfig><dir>");
71
0
            aBuffer.append(OUStringToOString(sExecDir, osl_getThreadTextEncoding()))
72
0
                   .append(OUStringToOString(getExecutableName(), osl_getThreadTextEncoding())).append(".fonts");
73
0
            aBuffer.append("</dir><cachedir>/tmp/cache/fontconfig</cachedir></fontconfig>");
74
0
            OString aConf = aBuffer.makeStringAndClear();
75
0
            sal_uInt64 aBytesWritten;
76
0
            aFontConfig.write(aConf.getStr(), aConf.getLength(), aBytesWritten);
77
            assert(aBytesWritten == aConf.getLength());
78
0
        }
79
2
        setenv("FONTCONFIG_FILE", "/tmp/wmffuzzerfonts.conf", 0);
80
2
    }
pptfuzzer.cxx:(anonymous namespace)::setFontConfigConf(rtl::OUString const&)
Line
Count
Source
63
2
    {
64
2
        osl::File aFontConfig("file:///tmp/wmffuzzerfonts.conf");
65
2
        if (aFontConfig.open(osl_File_OpenFlag_Create | osl_File_OpenFlag_Write) == osl::File::E_None)
66
0
        {
67
0
            OUString sExecDir;
68
0
            osl::FileBase::getSystemPathFromFileURL(execdir, sExecDir);
69
70
0
            OStringBuffer aBuffer("<?xml version=\"1.0\"?>\n<fontconfig><dir>");
71
0
            aBuffer.append(OUStringToOString(sExecDir, osl_getThreadTextEncoding()))
72
0
                   .append(OUStringToOString(getExecutableName(), osl_getThreadTextEncoding())).append(".fonts");
73
0
            aBuffer.append("</dir><cachedir>/tmp/cache/fontconfig</cachedir></fontconfig>");
74
0
            OString aConf = aBuffer.makeStringAndClear();
75
0
            sal_uInt64 aBytesWritten;
76
0
            aFontConfig.write(aConf.getStr(), aConf.getLength(), aBytesWritten);
77
            assert(aBytesWritten == aConf.getLength());
78
0
        }
79
2
        setenv("FONTCONFIG_FILE", "/tmp/wmffuzzerfonts.conf", 0);
80
2
    }
olefuzzer.cxx:(anonymous namespace)::setFontConfigConf(rtl::OUString const&)
Line
Count
Source
63
2
    {
64
2
        osl::File aFontConfig("file:///tmp/wmffuzzerfonts.conf");
65
2
        if (aFontConfig.open(osl_File_OpenFlag_Create | osl_File_OpenFlag_Write) == osl::File::E_None)
66
0
        {
67
0
            OUString sExecDir;
68
0
            osl::FileBase::getSystemPathFromFileURL(execdir, sExecDir);
69
70
0
            OStringBuffer aBuffer("<?xml version=\"1.0\"?>\n<fontconfig><dir>");
71
0
            aBuffer.append(OUStringToOString(sExecDir, osl_getThreadTextEncoding()))
72
0
                   .append(OUStringToOString(getExecutableName(), osl_getThreadTextEncoding())).append(".fonts");
73
0
            aBuffer.append("</dir><cachedir>/tmp/cache/fontconfig</cachedir></fontconfig>");
74
0
            OString aConf = aBuffer.makeStringAndClear();
75
0
            sal_uInt64 aBytesWritten;
76
0
            aFontConfig.write(aConf.getStr(), aConf.getLength(), aBytesWritten);
77
            assert(aBytesWritten == aConf.getLength());
78
0
        }
79
2
        setenv("FONTCONFIG_FILE", "/tmp/wmffuzzerfonts.conf", 0);
80
2
    }
hwpfuzzer.cxx:(anonymous namespace)::setFontConfigConf(rtl::OUString const&)
Line
Count
Source
63
2
    {
64
2
        osl::File aFontConfig("file:///tmp/wmffuzzerfonts.conf");
65
2
        if (aFontConfig.open(osl_File_OpenFlag_Create | osl_File_OpenFlag_Write) == osl::File::E_None)
66
0
        {
67
0
            OUString sExecDir;
68
0
            osl::FileBase::getSystemPathFromFileURL(execdir, sExecDir);
69
70
0
            OStringBuffer aBuffer("<?xml version=\"1.0\"?>\n<fontconfig><dir>");
71
0
            aBuffer.append(OUStringToOString(sExecDir, osl_getThreadTextEncoding()))
72
0
                   .append(OUStringToOString(getExecutableName(), osl_getThreadTextEncoding())).append(".fonts");
73
0
            aBuffer.append("</dir><cachedir>/tmp/cache/fontconfig</cachedir></fontconfig>");
74
0
            OString aConf = aBuffer.makeStringAndClear();
75
0
            sal_uInt64 aBytesWritten;
76
0
            aFontConfig.write(aConf.getStr(), aConf.getLength(), aBytesWritten);
77
            assert(aBytesWritten == aConf.getLength());
78
0
        }
79
2
        setenv("FONTCONFIG_FILE", "/tmp/wmffuzzerfonts.conf", 0);
80
2
    }
jpgfuzzer.cxx:(anonymous namespace)::setFontConfigConf(rtl::OUString const&)
Line
Count
Source
63
2
    {
64
2
        osl::File aFontConfig("file:///tmp/wmffuzzerfonts.conf");
65
2
        if (aFontConfig.open(osl_File_OpenFlag_Create | osl_File_OpenFlag_Write) == osl::File::E_None)
66
0
        {
67
0
            OUString sExecDir;
68
0
            osl::FileBase::getSystemPathFromFileURL(execdir, sExecDir);
69
70
0
            OStringBuffer aBuffer("<?xml version=\"1.0\"?>\n<fontconfig><dir>");
71
0
            aBuffer.append(OUStringToOString(sExecDir, osl_getThreadTextEncoding()))
72
0
                   .append(OUStringToOString(getExecutableName(), osl_getThreadTextEncoding())).append(".fonts");
73
0
            aBuffer.append("</dir><cachedir>/tmp/cache/fontconfig</cachedir></fontconfig>");
74
0
            OString aConf = aBuffer.makeStringAndClear();
75
0
            sal_uInt64 aBytesWritten;
76
0
            aFontConfig.write(aConf.getStr(), aConf.getLength(), aBytesWritten);
77
            assert(aBytesWritten == aConf.getLength());
78
0
        }
79
2
        setenv("FONTCONFIG_FILE", "/tmp/wmffuzzerfonts.conf", 0);
80
2
    }
dxffuzzer.cxx:(anonymous namespace)::setFontConfigConf(rtl::OUString const&)
Line
Count
Source
63
2
    {
64
2
        osl::File aFontConfig("file:///tmp/wmffuzzerfonts.conf");
65
2
        if (aFontConfig.open(osl_File_OpenFlag_Create | osl_File_OpenFlag_Write) == osl::File::E_None)
66
0
        {
67
0
            OUString sExecDir;
68
0
            osl::FileBase::getSystemPathFromFileURL(execdir, sExecDir);
69
70
0
            OStringBuffer aBuffer("<?xml version=\"1.0\"?>\n<fontconfig><dir>");
71
0
            aBuffer.append(OUStringToOString(sExecDir, osl_getThreadTextEncoding()))
72
0
                   .append(OUStringToOString(getExecutableName(), osl_getThreadTextEncoding())).append(".fonts");
73
0
            aBuffer.append("</dir><cachedir>/tmp/cache/fontconfig</cachedir></fontconfig>");
74
0
            OString aConf = aBuffer.makeStringAndClear();
75
0
            sal_uInt64 aBytesWritten;
76
0
            aFontConfig.write(aConf.getStr(), aConf.getLength(), aBytesWritten);
77
            assert(aBytesWritten == aConf.getLength());
78
0
        }
79
2
        setenv("FONTCONFIG_FILE", "/tmp/wmffuzzerfonts.conf", 0);
80
2
    }
ppmfuzzer.cxx:(anonymous namespace)::setFontConfigConf(rtl::OUString const&)
Line
Count
Source
63
2
    {
64
2
        osl::File aFontConfig("file:///tmp/wmffuzzerfonts.conf");
65
2
        if (aFontConfig.open(osl_File_OpenFlag_Create | osl_File_OpenFlag_Write) == osl::File::E_None)
66
0
        {
67
0
            OUString sExecDir;
68
0
            osl::FileBase::getSystemPathFromFileURL(execdir, sExecDir);
69
70
0
            OStringBuffer aBuffer("<?xml version=\"1.0\"?>\n<fontconfig><dir>");
71
0
            aBuffer.append(OUStringToOString(sExecDir, osl_getThreadTextEncoding()))
72
0
                   .append(OUStringToOString(getExecutableName(), osl_getThreadTextEncoding())).append(".fonts");
73
0
            aBuffer.append("</dir><cachedir>/tmp/cache/fontconfig</cachedir></fontconfig>");
74
0
            OString aConf = aBuffer.makeStringAndClear();
75
0
            sal_uInt64 aBytesWritten;
76
0
            aFontConfig.write(aConf.getStr(), aConf.getLength(), aBytesWritten);
77
            assert(aBytesWritten == aConf.getLength());
78
0
        }
79
2
        setenv("FONTCONFIG_FILE", "/tmp/wmffuzzerfonts.conf", 0);
80
2
    }
pngfuzzer.cxx:(anonymous namespace)::setFontConfigConf(rtl::OUString const&)
Line
Count
Source
63
2
    {
64
2
        osl::File aFontConfig("file:///tmp/wmffuzzerfonts.conf");
65
2
        if (aFontConfig.open(osl_File_OpenFlag_Create | osl_File_OpenFlag_Write) == osl::File::E_None)
66
0
        {
67
0
            OUString sExecDir;
68
0
            osl::FileBase::getSystemPathFromFileURL(execdir, sExecDir);
69
70
0
            OStringBuffer aBuffer("<?xml version=\"1.0\"?>\n<fontconfig><dir>");
71
0
            aBuffer.append(OUStringToOString(sExecDir, osl_getThreadTextEncoding()))
72
0
                   .append(OUStringToOString(getExecutableName(), osl_getThreadTextEncoding())).append(".fonts");
73
0
            aBuffer.append("</dir><cachedir>/tmp/cache/fontconfig</cachedir></fontconfig>");
74
0
            OString aConf = aBuffer.makeStringAndClear();
75
0
            sal_uInt64 aBytesWritten;
76
0
            aFontConfig.write(aConf.getStr(), aConf.getLength(), aBytesWritten);
77
            assert(aBytesWritten == aConf.getLength());
78
0
        }
79
2
        setenv("FONTCONFIG_FILE", "/tmp/wmffuzzerfonts.conf", 0);
80
2
    }
rasfuzzer.cxx:(anonymous namespace)::setFontConfigConf(rtl::OUString const&)
Line
Count
Source
63
2
    {
64
2
        osl::File aFontConfig("file:///tmp/wmffuzzerfonts.conf");
65
2
        if (aFontConfig.open(osl_File_OpenFlag_Create | osl_File_OpenFlag_Write) == osl::File::E_None)
66
0
        {
67
0
            OUString sExecDir;
68
0
            osl::FileBase::getSystemPathFromFileURL(execdir, sExecDir);
69
70
0
            OStringBuffer aBuffer("<?xml version=\"1.0\"?>\n<fontconfig><dir>");
71
0
            aBuffer.append(OUStringToOString(sExecDir, osl_getThreadTextEncoding()))
72
0
                   .append(OUStringToOString(getExecutableName(), osl_getThreadTextEncoding())).append(".fonts");
73
0
            aBuffer.append("</dir><cachedir>/tmp/cache/fontconfig</cachedir></fontconfig>");
74
0
            OString aConf = aBuffer.makeStringAndClear();
75
0
            sal_uInt64 aBytesWritten;
76
0
            aFontConfig.write(aConf.getStr(), aConf.getLength(), aBytesWritten);
77
            assert(aBytesWritten == aConf.getLength());
78
0
        }
79
2
        setenv("FONTCONFIG_FILE", "/tmp/wmffuzzerfonts.conf", 0);
80
2
    }
bmpfuzzer.cxx:(anonymous namespace)::setFontConfigConf(rtl::OUString const&)
Line
Count
Source
63
2
    {
64
2
        osl::File aFontConfig("file:///tmp/wmffuzzerfonts.conf");
65
2
        if (aFontConfig.open(osl_File_OpenFlag_Create | osl_File_OpenFlag_Write) == osl::File::E_None)
66
0
        {
67
0
            OUString sExecDir;
68
0
            osl::FileBase::getSystemPathFromFileURL(execdir, sExecDir);
69
70
0
            OStringBuffer aBuffer("<?xml version=\"1.0\"?>\n<fontconfig><dir>");
71
0
            aBuffer.append(OUStringToOString(sExecDir, osl_getThreadTextEncoding()))
72
0
                   .append(OUStringToOString(getExecutableName(), osl_getThreadTextEncoding())).append(".fonts");
73
0
            aBuffer.append("</dir><cachedir>/tmp/cache/fontconfig</cachedir></fontconfig>");
74
0
            OString aConf = aBuffer.makeStringAndClear();
75
0
            sal_uInt64 aBytesWritten;
76
0
            aFontConfig.write(aConf.getStr(), aConf.getLength(), aBytesWritten);
77
            assert(aBytesWritten == aConf.getLength());
78
0
        }
79
2
        setenv("FONTCONFIG_FILE", "/tmp/wmffuzzerfonts.conf", 0);
80
2
    }
qpwfuzzer.cxx:(anonymous namespace)::setFontConfigConf(rtl::OUString const&)
Line
Count
Source
63
2
    {
64
2
        osl::File aFontConfig("file:///tmp/wmffuzzerfonts.conf");
65
2
        if (aFontConfig.open(osl_File_OpenFlag_Create | osl_File_OpenFlag_Write) == osl::File::E_None)
66
0
        {
67
0
            OUString sExecDir;
68
0
            osl::FileBase::getSystemPathFromFileURL(execdir, sExecDir);
69
70
0
            OStringBuffer aBuffer("<?xml version=\"1.0\"?>\n<fontconfig><dir>");
71
0
            aBuffer.append(OUStringToOString(sExecDir, osl_getThreadTextEncoding()))
72
0
                   .append(OUStringToOString(getExecutableName(), osl_getThreadTextEncoding())).append(".fonts");
73
0
            aBuffer.append("</dir><cachedir>/tmp/cache/fontconfig</cachedir></fontconfig>");
74
0
            OString aConf = aBuffer.makeStringAndClear();
75
0
            sal_uInt64 aBytesWritten;
76
0
            aFontConfig.write(aConf.getStr(), aConf.getLength(), aBytesWritten);
77
            assert(aBytesWritten == aConf.getLength());
78
0
        }
79
2
        setenv("FONTCONFIG_FILE", "/tmp/wmffuzzerfonts.conf", 0);
80
2
    }
fods2xlsfuzzer.cxx:(anonymous namespace)::setFontConfigConf(rtl::OUString const&)
Line
Count
Source
63
2
    {
64
2
        osl::File aFontConfig("file:///tmp/wmffuzzerfonts.conf");
65
2
        if (aFontConfig.open(osl_File_OpenFlag_Create | osl_File_OpenFlag_Write) == osl::File::E_None)
66
0
        {
67
0
            OUString sExecDir;
68
0
            osl::FileBase::getSystemPathFromFileURL(execdir, sExecDir);
69
70
0
            OStringBuffer aBuffer("<?xml version=\"1.0\"?>\n<fontconfig><dir>");
71
0
            aBuffer.append(OUStringToOString(sExecDir, osl_getThreadTextEncoding()))
72
0
                   .append(OUStringToOString(getExecutableName(), osl_getThreadTextEncoding())).append(".fonts");
73
0
            aBuffer.append("</dir><cachedir>/tmp/cache/fontconfig</cachedir></fontconfig>");
74
0
            OString aConf = aBuffer.makeStringAndClear();
75
0
            sal_uInt64 aBytesWritten;
76
0
            aFontConfig.write(aConf.getStr(), aConf.getLength(), aBytesWritten);
77
            assert(aBytesWritten == aConf.getLength());
78
0
        }
79
2
        setenv("FONTCONFIG_FILE", "/tmp/wmffuzzerfonts.conf", 0);
80
2
    }
fodsfuzzer.cxx:(anonymous namespace)::setFontConfigConf(rtl::OUString const&)
Line
Count
Source
63
2
    {
64
2
        osl::File aFontConfig("file:///tmp/wmffuzzerfonts.conf");
65
2
        if (aFontConfig.open(osl_File_OpenFlag_Create | osl_File_OpenFlag_Write) == osl::File::E_None)
66
0
        {
67
0
            OUString sExecDir;
68
0
            osl::FileBase::getSystemPathFromFileURL(execdir, sExecDir);
69
70
0
            OStringBuffer aBuffer("<?xml version=\"1.0\"?>\n<fontconfig><dir>");
71
0
            aBuffer.append(OUStringToOString(sExecDir, osl_getThreadTextEncoding()))
72
0
                   .append(OUStringToOString(getExecutableName(), osl_getThreadTextEncoding())).append(".fonts");
73
0
            aBuffer.append("</dir><cachedir>/tmp/cache/fontconfig</cachedir></fontconfig>");
74
0
            OString aConf = aBuffer.makeStringAndClear();
75
0
            sal_uInt64 aBytesWritten;
76
0
            aFontConfig.write(aConf.getStr(), aConf.getLength(), aBytesWritten);
77
            assert(aBytesWritten == aConf.getLength());
78
0
        }
79
2
        setenv("FONTCONFIG_FILE", "/tmp/wmffuzzerfonts.conf", 0);
80
2
    }
xlsxfuzzer.cxx:(anonymous namespace)::setFontConfigConf(rtl::OUString const&)
Line
Count
Source
63
2
    {
64
2
        osl::File aFontConfig("file:///tmp/wmffuzzerfonts.conf");
65
2
        if (aFontConfig.open(osl_File_OpenFlag_Create | osl_File_OpenFlag_Write) == osl::File::E_None)
66
0
        {
67
0
            OUString sExecDir;
68
0
            osl::FileBase::getSystemPathFromFileURL(execdir, sExecDir);
69
70
0
            OStringBuffer aBuffer("<?xml version=\"1.0\"?>\n<fontconfig><dir>");
71
0
            aBuffer.append(OUStringToOString(sExecDir, osl_getThreadTextEncoding()))
72
0
                   .append(OUStringToOString(getExecutableName(), osl_getThreadTextEncoding())).append(".fonts");
73
0
            aBuffer.append("</dir><cachedir>/tmp/cache/fontconfig</cachedir></fontconfig>");
74
0
            OString aConf = aBuffer.makeStringAndClear();
75
0
            sal_uInt64 aBytesWritten;
76
0
            aFontConfig.write(aConf.getStr(), aConf.getLength(), aBytesWritten);
77
            assert(aBytesWritten == aConf.getLength());
78
0
        }
79
2
        setenv("FONTCONFIG_FILE", "/tmp/wmffuzzerfonts.conf", 0);
80
2
    }
81
}
82
83
0
extern "C" bool GetSpecialCharsForEdit() { return false; }
84
85
extern "C"
86
{
87
    __attribute__((weak)) void __lsan_disable();
88
    __attribute__((weak)) void __lsan_enable();
89
}
90
91
void CommonInitialize(int *argc, char ***argv)
92
106
{
93
106
    setenv("SAL_USE_VCLPLUGIN", "svp", 1);
94
106
    setenv("JPEGMEM", "768M", 1);
95
106
    setenv("JSIMD_FORCENONE", "1", 1); // https://github.com/libjpeg-turbo/libjpeg-turbo/issues/253
96
106
    setenv("SC_MAX_MATRIX_ELEMENTS", "60000000", 1);
97
106
    setenv("SC_NO_THREADED_CALCULATION", "1", 1);
98
106
    setenv("SAL_DISABLE_PRINTERLIST", "1", 1);
99
106
    setenv("SAL_DISABLE_DEFAULTPRINTER", "1", 1);
100
106
    setenv("SAL_NO_FONT_LOOKUP", "1", 1);
101
106
    setenv("SAX_DISABLE_THREADS", "1", 1);
102
103
    //allow bubbling of max input len to fuzzer targets
104
106
    int nMaxLen = 0;
105
688
    for (int i = 0; i < *argc; ++i)
106
582
    {
107
582
        if (strncmp((*argv)[i], "-max_len=", 9) == 0)
108
0
            nMaxLen = atoi((*argv)[i] + 9);
109
582
    }
110
106
    setenv("FUZZ_MAX_INPUT_LEN", "1", nMaxLen);
111
112
106
    osl_setCommandArgs(*argc, *argv);
113
114
106
    OUString sExecDir = getExecutableDir();
115
106
    rtl::Bootstrap::set("BRAND_BASE_DIR", sExecDir);
116
106
    setFontConfigConf(sExecDir);
117
118
106
    tools::extendApplicationEnvironment();
119
120
106
    Reference< XComponentContext > xContext =
121
106
        defaultBootstrap_InitialComponentContext(sExecDir + getExecutableName() + ".unorc");
122
106
    Reference< XMultiServiceFactory > xServiceManager( xContext->getServiceManager(), UNO_QUERY );
123
106
    if( !xServiceManager.is() )
124
0
        Application::Abort( "Failed to bootstrap" );
125
106
    comphelper::setProcessServiceFactory( xServiceManager );
126
106
    comphelper::EnableFuzzing();
127
106
    Application::EnableHeadlessMode(false);
128
106
    InitVCL();
129
130
    //we don't have a de-init, so inside this leak disabled region...
131
    //get the font info
132
106
    psp::PrintFontManager::get();
133
    //get the printer info
134
106
    Printer::GetPrinterQueues();
135
136
    //https://github.com/google/oss-fuzz/issues/1449
137
    //https://github.com/google/oss-fuzz/issues/5441
138
    //release the solarmutex so a fork can acquire it which should
139
    //allow these fuzzers to work without AFL_DRIVER_DONT_DEFER set
140
    //removing the confusion of #5441 and the need for AFL_DRIVER_DONT_DEFER
141
    //in .options files
142
106
    Application::ReleaseSolarMutex();
143
106
}
144
145
void TypicalFuzzerInitialize(int *argc, char ***argv)
146
92
{
147
92
    if (__lsan_disable)
148
0
        __lsan_disable();
149
150
92
    CommonInitialize(argc, argv);
151
152
92
    if (__lsan_enable)
153
0
        __lsan_enable();
154
92
}
155
156
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */