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

Caolán McNamara caolanm at redhat.com
Sun Oct 15 09:50:40 UTC 2017


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

New commits:
commit 9685532bc859167c1aa856c6f6792559904b8fb9
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Sun Oct 15 10:49:49 2017 +0100

    shrink pcd fuzzer
    
    Change-Id: I40235d5ee194b1e74a4f227800fe13329746d7eb

diff --git a/vcl/Executable_pcdfuzzer.mk b/vcl/Executable_pcdfuzzer.mk
index f115af391a1f..65916135e383 100644
--- a/vcl/Executable_pcdfuzzer.mk
+++ b/vcl/Executable_pcdfuzzer.mk
@@ -33,7 +33,6 @@ $(eval $(call gb_Executable_use_libraries,pcdfuzzer,\
 $(eval $(call gb_Executable_use_static_libraries,pcdfuzzer,\
     findsofficepath \
     ulingu \
-    fuzzer_core \
     fuzzerstubs \
 ))
 
diff --git a/vcl/workben/pcdfuzzer.cxx b/vcl/workben/pcdfuzzer.cxx
index 942f21e5646e..fe437adf66e2 100644
--- a/vcl/workben/pcdfuzzer.cxx
+++ b/vcl/workben/pcdfuzzer.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 icdGraphicImport(SvStream& rStream, Graphic& rGraphic, FilterConfigItem* pConfigItem);
 
 extern "C" int LLVMFuzzerInitialize(int *argc, char ***argv)


More information about the Libreoffice-commits mailing list