[Libreoffice-commits] core.git: vcl/Executable_qpwfuzzer.mk vcl/workben
Caolán McNamara
caolanm at redhat.com
Mon Oct 23 08:24:30 UTC 2017
vcl/Executable_qpwfuzzer.mk | 1
vcl/workben/qpwfuzzer.cxx | 49 ++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 49 insertions(+), 1 deletion(-)
New commits:
commit 2bdd2425664b6314e312e13679d4ccd3c093afb2
Author: Caolán McNamara <caolanm at redhat.com>
Date: Mon Oct 23 09:21:45 2017 +0100
shrink qpw fuzzer
Change-Id: If7038a3e720a987aaa3575646444aaf8dad555c2
diff --git a/vcl/Executable_qpwfuzzer.mk b/vcl/Executable_qpwfuzzer.mk
index 158743722fbd..4f81033557b4 100644
--- a/vcl/Executable_qpwfuzzer.mk
+++ b/vcl/Executable_qpwfuzzer.mk
@@ -34,7 +34,6 @@ $(eval $(call gb_Executable_use_libraries,qpwfuzzer,\
$(eval $(call gb_Executable_use_static_libraries,qpwfuzzer,\
findsofficepath \
ulingu \
- fuzzer_calc \
fuzzerstubs \
))
diff --git a/vcl/workben/qpwfuzzer.cxx b/vcl/workben/qpwfuzzer.cxx
index 8f0e4e85e162..27489f833ff1 100644
--- a/vcl/workben/qpwfuzzer.cxx
+++ b/vcl/workben/qpwfuzzer.cxx
@@ -10,6 +10,55 @@
#include <tools/stream.hxx>
#include "commonfuzzer.hxx"
+#include <config_features.h>
+#include <osl/detail/component-mapping.h>
+
+extern "C" {
+void * emfio_component_getFactory( const char* , void* , void* );
+void * i18npool_component_getFactory( const char* , void* , void* );
+
+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 * );
+void * com_sun_star_comp_framework_Desktop_get_implementation( void *, void * );
+void * com_sun_star_i18n_CharacterClassification_Unicode_get_implementation( void *, void * );
+void * com_sun_star_i18n_CharacterClassification_get_implementation( void *, void * );
+void * com_sun_star_i18n_NativeNumberSupplier_get_implementation( void *, void * );
+void * com_sun_star_i18n_NumberFormatCodeMapper_get_implementation( void *, void * );
+void * com_sun_star_i18n_Transliteration_get_implementation( void *, void * );
+}
+
+const lib_to_factory_mapping *
+lo_get_factory_map(void)
+{
+ static lib_to_factory_mapping map[] = {
+ { "libemfiolo.a", emfio_component_getFactory },
+ { "libi18npoollo.a", i18npool_component_getFactory },
+ { 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 },
+ { "com_sun_star_comp_framework_Desktop_get_implementation", com_sun_star_comp_framework_Desktop_get_implementation },
+ { "com_sun_star_i18n_CharacterClassification_Unicode_get_implementation", com_sun_star_i18n_CharacterClassification_Unicode_get_implementation },
+ { "com_sun_star_i18n_CharacterClassification_get_implementation", com_sun_star_i18n_CharacterClassification_get_implementation },
+ { "com_sun_star_i18n_NativeNumberSupplier_get_implementation", com_sun_star_i18n_NativeNumberSupplier_get_implementation },
+ { "com_sun_star_i18n_NumberFormatCodeMapper_get_implementation", com_sun_star_i18n_NumberFormatCodeMapper_get_implementation },
+ { "com_sun_star_i18n_Transliteration_get_implementation", com_sun_star_i18n_Transliteration_get_implementation },
+ { 0, 0 }
+ };
+
+ return map;
+}
+
extern "C" bool TestImportQPW(SvStream &rStream);
extern "C" int LLVMFuzzerInitialize(int *argc, char ***argv)
More information about the Libreoffice-commits
mailing list