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

Your Name you at example.com
Mon Oct 9 15:09:00 UTC 2017


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

New commits:
commit a80fde4c3650dca849ea4c777525f762718021ec
Author: Your Name <you at example.com>
Date:   Mon Oct 9 15:07:36 2017 +0000

    shrink png fuzzer
    
    Change-Id: I61b89eae0131c000c0a9861ab245fa21e5febc0b
    Reviewed-on: https://gerrit.libreoffice.org/43287
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/vcl/Executable_pngfuzzer.mk b/vcl/Executable_pngfuzzer.mk
index b58b3f1eb4f9..24b9f48970fb 100644
--- a/vcl/Executable_pngfuzzer.mk
+++ b/vcl/Executable_pngfuzzer.mk
@@ -33,7 +33,6 @@ $(eval $(call gb_Executable_use_libraries,pngfuzzer,\
 $(eval $(call gb_Executable_use_static_libraries,pngfuzzer,\
     findsofficepath \
     ulingu \
-    fuzzer_core \
     fuzzerstubs \
 ))
 
diff --git a/vcl/workben/pngfuzzer.cxx b/vcl/workben/pngfuzzer.cxx
index c3f631e1e502..a88784e1af17 100644
--- a/vcl/workben/pngfuzzer.cxx
+++ b/vcl/workben/pngfuzzer.cxx
@@ -11,6 +11,29 @@
 #include <vcl/pngread.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" int LLVMFuzzerInitialize(int *argc, char ***argv)
 {
     TypicalFuzzerInitialize(argc, argv);


More information about the Libreoffice-commits mailing list