From e74586f8d1be766a9ba90689f017143c1eb20c2e Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Sun, 15 Oct 2017 16:59:24 +0100 Subject: shrink ppm fuzzer Change-Id: I6baf17ed113a73c9840af1515c13ce950af9d1c1 --- vcl/Executable_ppmfuzzer.mk | 1 - vcl/workben/ppmfuzzer.cxx | 23 +++++++++++++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) (limited to 'vcl') diff --git a/vcl/Executable_ppmfuzzer.mk b/vcl/Executable_ppmfuzzer.mk index ee70e598f098..d0909ebba7fa 100644 --- a/vcl/Executable_ppmfuzzer.mk +++ b/vcl/Executable_ppmfuzzer.mk @@ -33,7 +33,6 @@ $(eval $(call gb_Executable_use_libraries,ppmfuzzer,\ $(eval $(call gb_Executable_use_static_libraries,ppmfuzzer,\ findsofficepath \ ulingu \ - fuzzer_core \ fuzzerstubs \ )) diff --git a/vcl/workben/ppmfuzzer.cxx b/vcl/workben/ppmfuzzer.cxx index a0a3cb475401..21010c3e025d 100644 --- a/vcl/workben/ppmfuzzer.cxx +++ b/vcl/workben/ppmfuzzer.cxx @@ -11,6 +11,29 @@ #include #include "commonfuzzer.hxx" +#include +#include + +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 ipbGraphicImport(SvStream& rStream, Graphic& rGraphic, FilterConfigItem* pConfigItem); extern "C" int LLVMFuzzerInitialize(int *argc, char ***argv) -- cgit