summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-10-16 17:01:20 +0100
committerCaolán McNamara <caolanm@redhat.com>2017-10-16 17:01:20 +0100
commit6518bea2dd97126daf7ea96f4201ab01318c841e (patch)
tree07764157366aacf25a47f51a5ec0e74e4ff7ab93
parent5b728638ba089651d1af6956f29fbda7ca58cc50 (diff)
shrink lwp fuzzer
Change-Id: I75cbc6c40dfb4d558c3e09bac1a40805c4ade3e3
-rw-r--r--vcl/Executable_lwpfuzzer.mk1
-rw-r--r--vcl/workben/lwpfuzzer.cxx23
2 files changed, 23 insertions, 1 deletions
diff --git a/vcl/Executable_lwpfuzzer.mk b/vcl/Executable_lwpfuzzer.mk
index dcf48e4a26b1..f5148e12525a 100644
--- a/vcl/Executable_lwpfuzzer.mk
+++ b/vcl/Executable_lwpfuzzer.mk
@@ -34,7 +34,6 @@ $(eval $(call gb_Executable_use_libraries,lwpfuzzer,\
$(eval $(call gb_Executable_use_static_libraries,lwpfuzzer,\
findsofficepath \
ulingu \
- fuzzer_core \
fuzzerstubs \
))
diff --git a/vcl/workben/lwpfuzzer.cxx b/vcl/workben/lwpfuzzer.cxx
index 5a10861f1cdb..76819a711b89 100644
--- a/vcl/workben/lwpfuzzer.cxx
+++ b/vcl/workben/lwpfuzzer.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 TestImportLWP(SvStream &rStream);
extern "C" int LLVMFuzzerInitialize(int *argc, char ***argv)