[Libreoffice-commits] core.git: vcl/Executable_olefuzzer.mk vcl/workben
Caolán McNamara
caolanm at redhat.com
Mon Oct 16 16:31:39 UTC 2017
vcl/Executable_olefuzzer.mk | 1 -
vcl/workben/olefuzzer.cxx | 23 +++++++++++++++++++++++
2 files changed, 23 insertions(+), 1 deletion(-)
New commits:
commit 172954db84ec4a2d38bf154c3199c5e16ee4f546
Author: Caolán McNamara <caolanm at redhat.com>
Date: Mon Oct 16 17:30:45 2017 +0100
shrink ole fuzzer
Change-Id: Iee390bd5e241536d4f55743083468c433417f572
diff --git a/vcl/Executable_olefuzzer.mk b/vcl/Executable_olefuzzer.mk
index 1fc064876027..4a73d573b2da 100644
--- a/vcl/Executable_olefuzzer.mk
+++ b/vcl/Executable_olefuzzer.mk
@@ -33,7 +33,6 @@ $(eval $(call gb_Executable_use_libraries,olefuzzer,\
$(eval $(call gb_Executable_use_static_libraries,olefuzzer,\
findsofficepath \
ulingu \
- fuzzer_core \
fuzzerstubs \
))
diff --git a/vcl/workben/olefuzzer.cxx b/vcl/workben/olefuzzer.cxx
index 6554b723f955..90caf7659f42 100644
--- a/vcl/workben/olefuzzer.cxx
+++ b/vcl/workben/olefuzzer.cxx
@@ -10,6 +10,29 @@
#include <tools/stream.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" bool TestImportOLE2(SvStream &rStream);
extern "C" int LLVMFuzzerInitialize(int *argc, char ***argv)
More information about the Libreoffice-commits
mailing list