vcl/workben/commonfuzzer.hxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 4659fc2f0a7223a89446edff0b77e58758b5edf5
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Fri Apr 15 20:07:25 2022 +0100
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Sat Apr 16 00:14:25 2022 +0200

    ofz#46632 Direct-leak
    
    there is no DeinitVCL for fuzzing, so fill the fontoptions,etc cache
    before starting
    
    Change-Id: I14a30c3d38490d03c31b4c349674ba48dd32de15
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133088
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caol...@redhat.com>

diff --git a/vcl/workben/commonfuzzer.hxx b/vcl/workben/commonfuzzer.hxx
index c9afd65552fe..e64a53dda644 100644
--- a/vcl/workben/commonfuzzer.hxx
+++ b/vcl/workben/commonfuzzer.hxx
@@ -129,6 +129,8 @@ void CommonInitialize(int *argc, char ***argv)
     psp::PrintFontManager::get();
     //get the printer info
     Printer::GetPrinterQueues();
+    //Draw some text to fill CairoTextRender fontoptions cache
+    Application::GetDefaultDevice()->DrawText(Point(0, 0), "hello world");
 
     //https://github.com/google/oss-fuzz/issues/1449
     //https://github.com/google/oss-fuzz/issues/5441

Reply via email to