summaryrefslogtreecommitdiff
path: root/vcl/workben
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-04-15 20:07:25 +0100
committerCaolán McNamara <caolanm@redhat.com>2022-04-16 00:14:25 +0200
commit4659fc2f0a7223a89446edff0b77e58758b5edf5 (patch)
treecf8df4f863c18199b5604d2094d4a7b49ecd7496 /vcl/workben
parentcb21bbc1210dc270a125613d571521701e379ff9 (diff)
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 <caolanm@redhat.com>
Diffstat (limited to 'vcl/workben')
-rw-r--r--vcl/workben/commonfuzzer.hxx2
1 files changed, 2 insertions, 0 deletions
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