[Libreoffice-commits] core.git: vcl/Executable_lwpfuzzer.mk vcl/workben

Caolán McNamara caolanm at redhat.com
Mon Oct 16 16:02:07 UTC 2017


 vcl/Executable_lwpfuzzer.mk |    1 -
 vcl/workben/lwpfuzzer.cxx   |   23 +++++++++++++++++++++++
 2 files changed, 23 insertions(+), 1 deletion(-)

New commits:
commit 6518bea2dd97126daf7ea96f4201ab01318c841e
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Mon Oct 16 17:01:20 2017 +0100

    shrink lwp fuzzer
    
    Change-Id: I75cbc6c40dfb4d558c3e09bac1a40805c4ade3e3

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)


More information about the Libreoffice-commits mailing list