summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-10-16 16:43:53 +0100
committerCaolán McNamara <caolanm@redhat.com>2017-10-16 16:44:19 +0100
commit5b728638ba089651d1af6956f29fbda7ca58cc50 (patch)
tree9aa6a1d38d01ea70e2b9180833d50c00b4630a0b /vcl
parentfcc2dd7f1faa90f351538c5f324301770cdf04e3 (diff)
shrink 602 fuzzer
Change-Id: I3c60abcd73ce443c780deff2e3b9c79717e03a1e
Diffstat (limited to 'vcl')
-rw-r--r--vcl/Executable_602fuzzer.mk1
-rw-r--r--vcl/workben/602fuzzer.cxx23
2 files changed, 23 insertions, 1 deletions
diff --git a/vcl/Executable_602fuzzer.mk b/vcl/Executable_602fuzzer.mk
index fdc553ce8ac7..d18a9a5c9928 100644
--- a/vcl/Executable_602fuzzer.mk
+++ b/vcl/Executable_602fuzzer.mk
@@ -34,7 +34,6 @@ $(eval $(call gb_Executable_use_libraries,602fuzzer,\
$(eval $(call gb_Executable_use_static_libraries,602fuzzer,\
findsofficepath \
ulingu \
- fuzzer_core \
fuzzerstubs \
))
diff --git a/vcl/workben/602fuzzer.cxx b/vcl/workben/602fuzzer.cxx
index b653befab885..7fc085da79ca 100644
--- a/vcl/workben/602fuzzer.cxx
+++ b/vcl/workben/602fuzzer.cxx
@@ -11,6 +11,29 @@
#include <vcl/FilterConfigItem.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 TestImport602(SvStream &rStream);
extern "C" int LLVMFuzzerInitialize(int *argc, char ***argv)