vcl/workben/svmfuzzer.cxx | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+)
New commits: commit 7e3e4d5058e34746b7b111312b9482323bbe0e1f Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Fri Mar 4 09:28:36 2022 +0000 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Fri Mar 4 10:34:13 2022 +0100 test more with svmfuzzer Change-Id: I4b43b2101e6f4defc90db2daa3fcd5f1d986c456 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130960 Tested-by: Caolán McNamara <caol...@redhat.com> Reviewed-by: Caolán McNamara <caol...@redhat.com> 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; }