diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-10-09 10:26:43 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-10-09 11:39:37 +0200 |
commit | 862167b21bce4a4b65de71af62a05c4bf0a97f87 (patch) | |
tree | 1365bbaafb020876dc65fbac01ca604f921e380d /vcl | |
parent | 1b0e134b1eb65920c1cb1256ccd1da6afa1752e1 (diff) |
shrink jpg fuzzer
Change-Id: I1222f17cd3cb692db41416fe152c11a8f9a4a290
Reviewed-on: https://gerrit.libreoffice.org/43273
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/Executable_jpgfuzzer.mk | 1 | ||||
-rw-r--r-- | vcl/workben/jpgfuzzer.cxx | 23 |
2 files changed, 23 insertions, 1 deletions
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); |