summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-10-15 21:24:36 +0100
committerCaolán McNamara <caolanm@redhat.com>2017-10-15 21:24:59 +0100
commit1ad5bc0374b32cc0bbee554a2e95d0e1855c394b (patch)
treef95b032f5a1ee99eedb97ad2449f63007d8ee94e /vcl
parent3d5e603f1b2c2c04492dc9ecf79dc4271bbc808e (diff)
shrink pcx fuzzer
Change-Id: If8653278fe1b2ae09b8ee6c6da10d43542be7798
Diffstat (limited to 'vcl')
-rw-r--r--vcl/Executable_pcxfuzzer.mk1
-rw-r--r--vcl/workben/pcxfuzzer.cxx23
2 files changed, 23 insertions, 1 deletions
diff --git a/vcl/Executable_pcxfuzzer.mk b/vcl/Executable_pcxfuzzer.mk
index ad24b39a30a9..ad24b43c16a2 100644
--- a/vcl/Executable_pcxfuzzer.mk
+++ b/vcl/Executable_pcxfuzzer.mk
@@ -33,7 +33,6 @@ $(eval $(call gb_Executable_use_libraries,pcxfuzzer,\
$(eval $(call gb_Executable_use_static_libraries,pcxfuzzer,\
findsofficepath \
ulingu \
- fuzzer_core \
fuzzerstubs \
))
diff --git a/vcl/workben/pcxfuzzer.cxx b/vcl/workben/pcxfuzzer.cxx
index 6f07f5e4d6aa..32e2a88f860d 100644
--- a/vcl/workben/pcxfuzzer.cxx
+++ b/vcl/workben/pcxfuzzer.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 ipxGraphicImport(SvStream& rStream, Graphic& rGraphic, FilterConfigItem* pConfigItem);
extern "C" int LLVMFuzzerInitialize(int *argc, char ***argv)