summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-05-13 14:03:14 +0100
committerCaolán McNamara <caolanm@redhat.com>2020-05-13 22:25:35 +0200
commit5111909cefa16a2342ac324f8b84bae845a84f46 (patch)
treee9968c04cfa082ad0388229660b5eddd70d8cffd
parent2c0cfef14596bf8b7244763682e86ae7d87cb83a (diff)
fix oss-fuzz build
Change-Id: Ia04a3e9c72c9b32f895c5925937d322f8dd963ff Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94135 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--vcl/Executable_fodtfuzzer.mk1
-rw-r--r--vcl/workben/docxfuzzer.cxx5
-rw-r--r--vcl/workben/fodtfuzzer.cxx5
-rw-r--r--vcl/workben/htmlfuzzer.cxx2
4 files changed, 12 insertions, 1 deletions
diff --git a/vcl/Executable_fodtfuzzer.mk b/vcl/Executable_fodtfuzzer.mk
index d4353cf123b7..c9801df6c678 100644
--- a/vcl/Executable_fodtfuzzer.mk
+++ b/vcl/Executable_fodtfuzzer.mk
@@ -19,7 +19,6 @@ $(eval $(call gb_Executable_use_api,fodtfuzzer,\
$(eval $(call gb_Executable_use_externals,fodtfuzzer,\
$(fuzzer_externals) \
- revenge \
))
$(eval $(call gb_Executable_set_include,fodtfuzzer,\
diff --git a/vcl/workben/docxfuzzer.cxx b/vcl/workben/docxfuzzer.cxx
index ab9b30696cad..89766618b982 100644
--- a/vcl/workben/docxfuzzer.cxx
+++ b/vcl/workben/docxfuzzer.cxx
@@ -16,6 +16,11 @@ extern "C" void* SwCreateDialogFactory()
return nullptr;
}
+extern "C" void* com_sun_star_comp_Writer_EPUBExportFilter_get_implementation()
+{
+ return nullptr;
+}
+
extern "C" bool TestImportDOCX(SvStream &rStream);
extern "C" int LLVMFuzzerInitialize(int *argc, char ***argv)
diff --git a/vcl/workben/fodtfuzzer.cxx b/vcl/workben/fodtfuzzer.cxx
index e68e37bf06ab..2b110212a57e 100644
--- a/vcl/workben/fodtfuzzer.cxx
+++ b/vcl/workben/fodtfuzzer.cxx
@@ -16,6 +16,11 @@ extern "C" void* SwCreateDialogFactory()
return nullptr;
}
+extern "C" void* com_sun_star_comp_Writer_EPUBExportFilter_get_implementation()
+{
+ return nullptr;
+}
+
extern "C" bool TestImportFODT(SvStream &rStream);
extern "C" int LLVMFuzzerInitialize(int *argc, char ***argv)
diff --git a/vcl/workben/htmlfuzzer.cxx b/vcl/workben/htmlfuzzer.cxx
index 1c466fb1a3e3..fbeec9f3a4f1 100644
--- a/vcl/workben/htmlfuzzer.cxx
+++ b/vcl/workben/htmlfuzzer.cxx
@@ -13,6 +13,8 @@
extern "C" void* SwCreateDialogFactory() { return nullptr; }
+extern "C" void* com_sun_star_comp_Writer_EPUBExportFilter_get_implementation() { return nullptr; }
+
extern "C" bool TestImportHTML(SvStream& rStream);
extern "C" int LLVMFuzzerInitialize(int* argc, char*** argv)