vcl: Drop sftfuzzer

It fuzzes nothing now.

Change-Id: I539560993983ad0927a912cc26c141978c41785e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208915
Reviewed-by: Khaled Hosny <khaled@libreoffice.org>
Tested-by: Jenkins
This commit is contained in:
Khaled Hosny
2026-08-01 15:04:27 +02:00
committed by Khaled Hosny
parent 9061517ef3
commit 683c91234c
8 changed files with 1 additions and 102 deletions
-1
View File
@@ -168,7 +168,6 @@ $(eval $(call gb_Helper_register_executables_for_install,OOO,brand, \
$(call gb_Helper_optional,FUZZERS,mmlfuzzer) \
$(call gb_Helper_optional,FUZZERS,mtpfuzzer) \
$(call gb_Helper_optional,FUZZERS,htmlfuzzer) \
$(call gb_Helper_optional,FUZZERS,sftfuzzer) \
$(call gb_Helper_optional,FUZZERS,eotfuzzer) \
$(call gb_Helper_optional,FUZZERS,dbffuzzer) \
$(call gb_Helper_optional,FUZZERS,webpfuzzer) \
+1 -2
View File
@@ -129,7 +129,7 @@ git clone --depth 1 --filter=blob:none --sparse https://github.com/harfbuzz/harf
cp -r harfbuzz/test/shape/data/in-house/fonts $SRC/sample-sft-fonts/harfbuzz && rm -rf harfbuzz
# exclude very large fonts that are slow to process under sanitizers
find $SRC/sample-sft-fonts -size +1M -delete
zip -qr $SRC/sftfuzzer_seed_corpus.zip $SRC/sample-sft-fonts
zip -qr $SRC/eotfuzzer_seed_corpus.zip $SRC/sample-sft-fonts
# PDF
git clone --depth 1 https://github.com/strongcourage/fuzzing-corpus.git && \
@@ -188,7 +188,6 @@ cp fodtfuzzer_seed_corpus.zip fodt2pdffuzzer_seed_corpus.zip
cp rtffuzzer_seed_corpus.zip rtf2pdffuzzer_seed_corpus.zip
cp fodsfuzzer_seed_corpus.zip fods2xlsfuzzer_seed_corpus.zip
cp htmlfuzzer_seed_corpus.zip schtmlfuzzer_seed_corpus.zip
cp sftfuzzer_seed_corpus.zip eotfuzzer_seed_corpus.zip
cp pdffuzzer_seed_corpus.zip pdf2fodgfuzzer_seed_corpus.zip
echo end downloading dependencies at `date -u`
-44
View File
@@ -1,44 +0,0 @@
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
#
# This file is part of the LibreOffice project.
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
include $(SRCDIR)/vcl/commonfuzzer.mk
$(eval $(call gb_Executable_Executable,sftfuzzer))
$(eval $(call gb_Executable_use_api,sftfuzzer,\
offapi \
udkapi \
))
$(eval $(call gb_Executable_use_externals,sftfuzzer,\
$(fuzzer_externals) \
))
$(eval $(call gb_Executable_set_include,sftfuzzer,\
$$(INCLUDE) \
-I$(SRCDIR)/vcl/inc \
))
$(eval $(call gb_Executable_use_libraries,sftfuzzer,\
$(fuzzer_core_libraries) \
))
$(eval $(call gb_Executable_use_static_libraries,sftfuzzer,\
$(fuzzer_statics) \
))
$(eval $(call gb_Executable_add_exception_objects,sftfuzzer,\
vcl/workben/sftfuzzer \
))
$(eval $(call gb_Executable_add_libs,sftfuzzer,\
$(LIB_FUZZING_ENGINE) \
))
# vim: set noet sw=4 ts=4:
-1
View File
@@ -215,7 +215,6 @@ $(eval $(call gb_Module_add_targets,vcl,\
Executable_mtpfuzzer \
Executable_htmlfuzzer \
Executable_eotfuzzer \
Executable_sftfuzzer \
Executable_dbffuzzer \
Executable_webpfuzzer \
Executable_zipfuzzer \
-2
View File
@@ -184,6 +184,4 @@ public:
} // namespace vcl
int VCL_DLLPUBLIC TestFontParsing(const void* data, sal_uInt32 size);
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
-2
View File
@@ -215,6 +215,4 @@ FontWeight TrueTypeFont::getFontWeight() const
} // namespace vcl
int TestFontParsing(const void*, sal_uInt32) { return 0; }
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
-7
View File
@@ -256,13 +256,6 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv)
aFileStream.ReadBytes(aData.data(), aData.size());
ret = TestEOT(aData.data(), aData.size());
}
else if (strcmp(argv[2], "sft") == 0)
{
SvFileStream aFileStream(out, StreamMode::READ);
std::vector<sal_uInt8> aData(aFileStream.remainingSize());
aFileStream.ReadBytes(aData.data(), aData.size());
ret = TestFontParsing(aData.data(), aData.size());
}
#ifndef DISABLE_DYNLOADING
else if ((strcmp(argv[2], "doc") == 0) || (strcmp(argv[2], "ww8") == 0))
{
-43
View File
@@ -1,43 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#include <font/TrueTypeFont.hxx>
#include "commonfuzzer.hxx"
#include <config_features.h>
#include <osl/detail/component-mapping.h>
const lib_to_factory_mapping* lo_get_factory_map(void)
{
static lib_to_factory_mapping map[] = { { 0, 0 } };
return map;
}
const lib_to_constructor_mapping* lo_get_constructor_map(void)
{
static lib_to_constructor_mapping map[] = { { 0, 0 } };
return map;
}
extern "C" void* lo_get_custom_widget_func(const char*) { return nullptr; }
extern "C" int LLVMFuzzerInitialize(int* argc, char*** argv)
{
TypicalFuzzerInitialize(argc, argv);
return 0;
}
extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size)
{
return TestFontParsing(data, size);
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */