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

Caolán McNamara caolanm at redhat.com
Mon Oct 16 15:44:52 UTC 2017


 vcl/Executable_602fuzzer.mk |    1 -
 vcl/workben/602fuzzer.cxx   |   23 +++++++++++++++++++++++
 2 files changed, 23 insertions(+), 1 deletion(-)

New commits:
commit 5b728638ba089651d1af6956f29fbda7ca58cc50
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Mon Oct 16 16:43:53 2017 +0100

    shrink 602 fuzzer
    
    Change-Id: I3c60abcd73ce443c780deff2e3b9c79717e03a1e

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)


More information about the Libreoffice-commits mailing list