summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYour Name <you@example.com>2017-10-09 15:07:36 +0000
committerCaolán McNamara <caolanm@redhat.com>2017-10-09 17:08:39 +0200
commita80fde4c3650dca849ea4c777525f762718021ec (patch)
tree845dfd62c2feed9688bcafe5c817b1b426b637e6
parent83c2eb0cbfb86392ecc8ecae9da1379c91c8e936 (diff)
shrink png fuzzer
Change-Id: I61b89eae0131c000c0a9861ab245fa21e5febc0b Reviewed-on: https://gerrit.libreoffice.org/43287 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--vcl/Executable_pngfuzzer.mk1
-rw-r--r--vcl/workben/pngfuzzer.cxx23
2 files changed, 23 insertions, 1 deletions
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);