diff options
author | Caolán McNamara <caolanm@redhat.com> | 2022-03-04 09:28:36 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2022-03-04 10:34:13 +0100 |
commit | 7e3e4d5058e34746b7b111312b9482323bbe0e1f (patch) | |
tree | 090ec9b70bbe08356c6379f35dd924e0d9424f40 /vcl/workben | |
parent | 596e4970c1475346f5fb19052db4fc2e565d84fa (diff) |
test more with svmfuzzer
Change-Id: I4b43b2101e6f4defc90db2daa3fcd5f1d986c456
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130960
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/workben')
-rw-r--r-- | vcl/workben/svmfuzzer.cxx | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/vcl/workben/svmfuzzer.cxx b/vcl/workben/svmfuzzer.cxx index 890946eecd41..a4074f465cc5 100644 --- a/vcl/workben/svmfuzzer.cxx +++ b/vcl/workben/svmfuzzer.cxx @@ -9,12 +9,23 @@ #include <tools/stream.hxx> #include <vcl/gdimtf.hxx> +#include <vcl/virdev.hxx> #include <vcl/filter/SvmReader.hxx> #include "commonfuzzer.hxx" #include <config_features.h> #include <osl/detail/component-mapping.h> +extern "C" { +void * com_sun_star_i18n_LocaleDataImpl_get_implementation( void *, void * ); +void * com_sun_star_i18n_BreakIterator_Unicode_get_implementation( void *, void * ); +void * com_sun_star_i18n_BreakIterator_get_implementation( void *, void * ); +void * com_sun_star_i18n_NativeNumberSupplier_get_implementation( void *, void * ); +void * com_sun_star_i18n_NumberFormatCodeMapper_get_implementation( void *, void * ); +void * com_sun_star_comp_rendering_CanvasFactory_get_implementation( void *, void * ); +void * com_sun_star_comp_rendering_Canvas_VCL_get_implementation( void *, void * ); +} + const lib_to_factory_mapping * lo_get_factory_map(void) { @@ -29,6 +40,13 @@ const lib_to_constructor_mapping * lo_get_constructor_map(void) { static lib_to_constructor_mapping map[] = { + { "com_sun_star_i18n_LocaleDataImpl_get_implementation", com_sun_star_i18n_LocaleDataImpl_get_implementation }, + { "com_sun_star_i18n_BreakIterator_Unicode_get_implementation", com_sun_star_i18n_BreakIterator_Unicode_get_implementation }, + { "com_sun_star_i18n_BreakIterator_get_implementation", com_sun_star_i18n_BreakIterator_get_implementation }, + { "com_sun_star_i18n_NativeNumberSupplier_get_implementation", com_sun_star_i18n_NativeNumberSupplier_get_implementation }, + { "com_sun_star_i18n_NumberFormatCodeMapper_get_implementation", com_sun_star_i18n_NumberFormatCodeMapper_get_implementation }, + { "com_sun_star_comp_rendering_CanvasFactory_get_implementation", com_sun_star_comp_rendering_CanvasFactory_get_implementation }, + { "com_sun_star_comp_rendering_Canvas_VCL_get_implementation", com_sun_star_comp_rendering_Canvas_VCL_get_implementation }, { 0, 0 } }; @@ -52,6 +70,8 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) GDIMetaFile aGDIMetaFile; SvmReader aReader(aStream); aReader.Read(aGDIMetaFile); + ScopedVclPtrInstance<VirtualDevice> aVDev; + aGDIMetaFile.Play(*aVDev); return 0; } |