From 34e69a56daf031c1215fd7dd7c342dacb3badb1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Mon, 9 Oct 2017 16:10:43 +0100 Subject: [PATCH] shrink bmp fuzzer MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I9119c61f80631bb57bc8eade552a4d88b0c699df Reviewed-on: https://gerrit.libreoffice.org/43288 Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- vcl/Executable_bmpfuzzer.mk | 1 - vcl/workben/bmpfuzzer.cxx | 23 +++++++++++++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/vcl/Executable_bmpfuzzer.mk b/vcl/Executable_bmpfuzzer.mk index 2b125ee66375..da22f2f3b8df 100644 --- a/vcl/Executable_bmpfuzzer.mk +++ b/vcl/Executable_bmpfuzzer.mk @@ -33,7 +33,6 @@ $(eval $(call gb_Executable_use_libraries,bmpfuzzer,\ $(eval $(call gb_Executable_use_static_libraries,bmpfuzzer,\ findsofficepath \ ulingu \ - fuzzer_core \ fuzzerstubs \ )) diff --git a/vcl/workben/bmpfuzzer.cxx b/vcl/workben/bmpfuzzer.cxx index cc96044c53d2..0029cb1d00d5 100644 --- a/vcl/workben/bmpfuzzer.cxx +++ b/vcl/workben/bmpfuzzer.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" int LLVMFuzzerInitialize(int *argc, char ***argv) { TypicalFuzzerInitialize(argc, argv);