From b2384778d958031bce4a5d393bb1d96c74d41ab2 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Mon, 9 Oct 2017 11:18:42 +0100 Subject: shrink gif fuzzer Change-Id: I68561045548bfcff509d439837b7f31c650796f7 --- vcl/Executable_giffuzzer.mk | 1 - vcl/workben/giffuzzer.cxx | 23 +++++++++++++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) (limited to 'vcl') diff --git a/vcl/Executable_giffuzzer.mk b/vcl/Executable_giffuzzer.mk index 455e22bccdba..6d0458cba34e 100644 --- a/vcl/Executable_giffuzzer.mk +++ b/vcl/Executable_giffuzzer.mk @@ -33,7 +33,6 @@ $(eval $(call gb_Executable_use_libraries,giffuzzer,\ $(eval $(call gb_Executable_use_static_libraries,giffuzzer,\ findsofficepath \ ulingu \ - fuzzer_core \ fuzzerstubs \ )) diff --git a/vcl/workben/giffuzzer.cxx b/vcl/workben/giffuzzer.cxx index 623f9b03a6a1..482099ea807d 100644 --- a/vcl/workben/giffuzzer.cxx +++ b/vcl/workben/giffuzzer.cxx @@ -11,6 +11,29 @@ #include <../source/filter/igif/gifread.hxx> #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); -- cgit