summaryrefslogtreecommitdiff
path: root/vcl/workben/metfuzzer.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-10-15 16:44:07 +0100
committerCaolán McNamara <caolanm@redhat.com>2017-10-15 16:44:07 +0100
commit8200c0f802405472c5c7369cb1eff7a7e6d846c9 (patch)
treec670e9be9e3321aa449927870204a722e66e96f4 /vcl/workben/metfuzzer.cxx
parent21b5184d744eb06548e36c771d34658b11f864b6 (diff)
shrink met fuzzer
Change-Id: I58323e7cfcc764a78b2dfe751afb3d667c809a1e
Diffstat (limited to 'vcl/workben/metfuzzer.cxx')
-rw-r--r--vcl/workben/metfuzzer.cxx32
1 files changed, 32 insertions, 0 deletions
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)