diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-10-15 15:15:36 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-10-15 15:15:56 +0100 |
commit | 21b5184d744eb06548e36c771d34658b11f864b6 (patch) | |
tree | 613fca6595dca3532769193524d972659dc93521 /vcl/workben/dxffuzzer.cxx | |
parent | 0e6fbf4d8487bc407bd9a7c904bc9294b1d73c0e (diff) |
shrink dxf fuzzer
Change-Id: I8bd1327d23ebc79723f4e3492067950ca2408020
Diffstat (limited to 'vcl/workben/dxffuzzer.cxx')
-rw-r--r-- | vcl/workben/dxffuzzer.cxx | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/vcl/workben/dxffuzzer.cxx b/vcl/workben/dxffuzzer.cxx index 7320a24fb786..2b062ebf65c6 100644 --- a/vcl/workben/dxffuzzer.cxx +++ b/vcl/workben/dxffuzzer.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 idxGraphicImport(SvStream& rStream, Graphic& rGraphic, FilterConfigItem* pConfigItem); extern "C" int LLVMFuzzerInitialize(int *argc, char ***argv) |