[Libreoffice-commits] core.git: vcl/Executable_metfuzzer.mk vcl/workben
Caolán McNamara
caolanm at redhat.com
Sun Oct 15 15:44:47 UTC 2017
vcl/Executable_metfuzzer.mk | 1 -
vcl/workben/metfuzzer.cxx | 32 ++++++++++++++++++++++++++++++++
2 files changed, 32 insertions(+), 1 deletion(-)
New commits:
commit 8200c0f802405472c5c7369cb1eff7a7e6d846c9
Author: Caolán McNamara <caolanm at redhat.com>
Date: Sun Oct 15 16:44:07 2017 +0100
shrink met fuzzer
Change-Id: I58323e7cfcc764a78b2dfe751afb3d667c809a1e
diff --git a/vcl/Executable_metfuzzer.mk b/vcl/Executable_metfuzzer.mk
index 5234bda2fa69..930277d3b99e 100644
--- a/vcl/Executable_metfuzzer.mk
+++ b/vcl/Executable_metfuzzer.mk
@@ -33,7 +33,6 @@ $(eval $(call gb_Executable_use_libraries,metfuzzer,\
$(eval $(call gb_Executable_use_static_libraries,metfuzzer,\
findsofficepath \
ulingu \
- fuzzer_core \
fuzzerstubs \
))
diff --git a/vcl/workben/metfuzzer.cxx b/vcl/workben/metfuzzer.cxx
index 6f919c1842d5..285a27b76909 100644
--- a/vcl/workben/metfuzzer.cxx
+++ b/vcl/workben/metfuzzer.cxx
@@ -11,6 +11,38 @@
#include <vcl/FilterConfigItem.hxx>
#include "commonfuzzer.hxx"
+#include <config_features.h>
+#include <osl/detail/component-mapping.h>
+
+extern "C" {
+void * com_sun_star_i18n_LocaleDataImpl_get_implementation( void *, void * );
+void * com_sun_star_i18n_BreakIterator_Unicode_get_implementation( void *, void * );
+void * com_sun_star_i18n_BreakIterator_get_implementation( void *, void * );
+}
+
+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[] = {
+ { "com_sun_star_i18n_LocaleDataImpl_get_implementation", com_sun_star_i18n_LocaleDataImpl_get_implementation },
+ { "com_sun_star_i18n_BreakIterator_Unicode_get_implementation", com_sun_star_i18n_BreakIterator_Unicode_get_implementation },
+ { "com_sun_star_i18n_BreakIterator_get_implementation", com_sun_star_i18n_BreakIterator_get_implementation },
+ { 0, 0 }
+ };
+
+ return map;
+}
+
extern "C" bool imeGraphicImport(SvStream& rStream, Graphic& rGraphic, FilterConfigItem* pConfigItem);
extern "C" int LLVMFuzzerInitialize(int *argc, char ***argv)
More information about the Libreoffice-commits
mailing list