From f3f3bdf708e5867369ae0a5b7362a429ba70e8ba Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Wed, 14 Feb 2024 21:47:20 +0000 Subject: ofz: don't need "cui" for fuzzing MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I3d8778d23a21bdd4a6babf495552112c67938111 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/163413 Tested-by: Jenkins Reviewed-by: Caolán McNamara --- solenv/bin/native-code.py | 2 +- vcl/commonfuzzer.mk | 1 - vcl/workben/commonfuzzer.hxx | 4 ++++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/solenv/bin/native-code.py b/solenv/bin/native-code.py index d14db957e3c9..4358188d1219 100755 --- a/solenv/bin/native-code.py +++ b/solenv/bin/native-code.py @@ -117,7 +117,7 @@ core_constructor_list = [ # cppcanvas/source/uno/mtfrenderer.component "com_sun_star_comp_rendering_MtfRenderer_get_implementation", # cui/util/cui.component - "com_sun_star_cui_ColorPicker_get_implementation", + ("com_sun_star_cui_ColorPicker_get_implementation", "#if !ENABLE_FUZZERS"), # dbaccess/util/dba.component "com_sun_star_comp_dba_DataAccessDescriptorFactory", "com_sun_star_comp_dba_OCommandDefinition", diff --git a/vcl/commonfuzzer.mk b/vcl/commonfuzzer.mk index b5341fc1aa04..4d514359bf50 100644 --- a/vcl/commonfuzzer.mk +++ b/vcl/commonfuzzer.mk @@ -113,7 +113,6 @@ fuzzer_core_libraries = \ xmlscript \ xo \ xstor \ - cui \ chartcontroller \ chartcore \ sm \ diff --git a/vcl/workben/commonfuzzer.hxx b/vcl/workben/commonfuzzer.hxx index 8df1d7200eb9..2ac18fd51a49 100644 --- a/vcl/workben/commonfuzzer.hxx +++ b/vcl/workben/commonfuzzer.hxx @@ -79,6 +79,10 @@ namespace } } +extern "C" void* CreateDialogFactory() { return nullptr; } + +extern "C" bool GetSpecialCharsForEdit() { return false; } + extern "C" { __attribute__((weak)) void __lsan_disable(); -- cgit