diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-10-16 17:30:45 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-10-16 17:31:08 +0100 |
commit | 172954db84ec4a2d38bf154c3199c5e16ee4f546 (patch) | |
tree | 353e1884e2b6f9cab9aeb8eafc3c8d4c3e217602 /vcl | |
parent | 5a31258d120c7220d918c0835a03928b1451c7a9 (diff) |
shrink ole fuzzer
Change-Id: Iee390bd5e241536d4f55743083468c433417f572
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/Executable_olefuzzer.mk | 1 | ||||
-rw-r--r-- | vcl/workben/olefuzzer.cxx | 23 |
2 files changed, 23 insertions, 1 deletions
diff --git a/vcl/Executable_olefuzzer.mk b/vcl/Executable_olefuzzer.mk index 1fc064876027..4a73d573b2da 100644 --- a/vcl/Executable_olefuzzer.mk +++ b/vcl/Executable_olefuzzer.mk @@ -33,7 +33,6 @@ $(eval $(call gb_Executable_use_libraries,olefuzzer,\ $(eval $(call gb_Executable_use_static_libraries,olefuzzer,\ findsofficepath \ ulingu \ - fuzzer_core \ fuzzerstubs \ )) diff --git a/vcl/workben/olefuzzer.cxx b/vcl/workben/olefuzzer.cxx index 6554b723f955..90caf7659f42 100644 --- a/vcl/workben/olefuzzer.cxx +++ b/vcl/workben/olefuzzer.cxx @@ -10,6 +10,29 @@ #include <tools/stream.hxx> #include "commonfuzzer.hxx" +#include <config_features.h> +#include <osl/detail/component-mapping.h> + +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[] = { + { 0, 0 } + }; + + return map; +} + extern "C" bool TestImportOLE2(SvStream &rStream); extern "C" int LLVMFuzzerInitialize(int *argc, char ***argv) |