diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-10-20 09:21:29 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-10-20 09:21:29 +0100 |
commit | 7f4543402a6efce84d94c26dade58f752b37d6b3 (patch) | |
tree | 34898d0181afef92168e5f612d209166e5cc181f /vcl | |
parent | 14d45665433eec974acd96f813f2bf314bdb3eba (diff) |
shrink ww6 fuzzer
Change-Id: Ic84ebb2327d6f99b04a6f2722f71fe401d2a9e09
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/Executable_ww6fuzzer.mk | 1 | ||||
-rw-r--r-- | vcl/workben/ww6fuzzer.cxx | 61 |
2 files changed, 61 insertions, 1 deletions
diff --git a/vcl/Executable_ww6fuzzer.mk b/vcl/Executable_ww6fuzzer.mk index 4318ba663642..cf540f89e2d0 100644 --- a/vcl/Executable_ww6fuzzer.mk +++ b/vcl/Executable_ww6fuzzer.mk @@ -34,7 +34,6 @@ $(eval $(call gb_Executable_use_libraries,ww6fuzzer,\ $(eval $(call gb_Executable_use_static_libraries,ww6fuzzer,\ findsofficepath \ ulingu \ - fuzzer_writer \ fuzzerstubs \ )) diff --git a/vcl/workben/ww6fuzzer.cxx b/vcl/workben/ww6fuzzer.cxx index d39b9bcb0585..f75dea9a3ebd 100644 --- a/vcl/workben/ww6fuzzer.cxx +++ b/vcl/workben/ww6fuzzer.cxx @@ -11,6 +11,67 @@ #include <vcl/FilterConfigItem.hxx> #include "commonfuzzer.hxx" +#include <config_features.h> +#include <osl/detail/component-mapping.h> + +extern "C" { +void * unoxml_component_getFactory( const char* , void* , void* ); +void * i18npool_component_getFactory( const char* , void* , void* ); +void * emfio_component_getFactory( const char* , void* , void* ); + +void * com_sun_star_comp_framework_Desktop_get_implementation( 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 * SfxDocumentMetaData_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_comp_graphic_GraphicProvider_get_implementation( void *, void * ); +void * IndexedPropertyValuesContainer_get_implementation( void *, void * ); +void * com_sun_star_comp_uui_UUIInteractionHandler_get_implementation( void *, void * ); +void * com_sun_star_comp_comphelper_OPropertyBag( 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[] = { + { "libunoxmllo.a", unoxml_component_getFactory }, + { "libi18npoollo.a", i18npool_component_getFactory }, + { "libemfiolo.a", emfio_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_comp_framework_Desktop_get_implementation", com_sun_star_comp_framework_Desktop_get_implementation }, + { "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 }, + { "SfxDocumentMetaData_get_implementation", SfxDocumentMetaData_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_comp_graphic_GraphicProvider_get_implementation", com_sun_star_comp_graphic_GraphicProvider_get_implementation }, + { "IndexedPropertyValuesContainer_get_implementation", IndexedPropertyValuesContainer_get_implementation }, + { "com_sun_star_comp_uui_UUIInteractionHandler_get_implementation", com_sun_star_comp_uui_UUIInteractionHandler_get_implementation }, + { "com_sun_star_comp_comphelper_OPropertyBag", com_sun_star_comp_comphelper_OPropertyBag }, + { "com_sun_star_i18n_Transliteration_get_implementation", com_sun_star_i18n_Transliteration_get_implementation }, + { 0, 0 } + }; + + return map; +} + extern "C" bool TestImportWW6(SvStream &rStream); extern "C" int LLVMFuzzerInitialize(int *argc, char ***argv) |