[Libreoffice-commits] core.git: vcl/Executable_jpgfuzzer.mk vcl/workben
Caolán McNamara
caolanm at redhat.com
Mon Oct 9 09:39:57 UTC 2017
vcl/Executable_jpgfuzzer.mk | 1 -
vcl/workben/jpgfuzzer.cxx | 23 +++++++++++++++++++++++
2 files changed, 23 insertions(+), 1 deletion(-)
New commits:
commit 862167b21bce4a4b65de71af62a05c4bf0a97f87
Author: Caolán McNamara <caolanm at redhat.com>
Date: Mon Oct 9 10:26:43 2017 +0100
shrink jpg fuzzer
Change-Id: I1222f17cd3cb692db41416fe152c11a8f9a4a290
Reviewed-on: https://gerrit.libreoffice.org/43273
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
Tested-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/vcl/Executable_jpgfuzzer.mk b/vcl/Executable_jpgfuzzer.mk
index ab5f09056b31..daa801d45c75 100644
--- a/vcl/Executable_jpgfuzzer.mk
+++ b/vcl/Executable_jpgfuzzer.mk
@@ -33,7 +33,6 @@ $(eval $(call gb_Executable_use_libraries,jpgfuzzer,\
$(eval $(call gb_Executable_use_static_libraries,jpgfuzzer,\
findsofficepath \
ulingu \
- fuzzer_core \
fuzzerstubs \
))
diff --git a/vcl/workben/jpgfuzzer.cxx b/vcl/workben/jpgfuzzer.cxx
index 5fa270b69e7e..0fe6fc9076ee 100644
--- a/vcl/workben/jpgfuzzer.cxx
+++ b/vcl/workben/jpgfuzzer.cxx
@@ -11,6 +11,29 @@
#include <../source/filter/jpeg/jpeg.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