diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-08-16 13:59:26 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-08-16 17:16:29 +0200 |
commit | a518d1acf7f2f9952ab1d20f3185615351655ef8 (patch) | |
tree | 05bb955845dbd94a3b2bd1dec313b9f5ba32b316 /vcl/headless | |
parent | 308fbd8cdf9ce0fc3921b6c4c58707609b486fb9 (diff) |
skip text layout when fuzzing
Change-Id: I4d1c0ce31c4bfde0c1c681235868f6e5484fb561
Reviewed-on: https://gerrit.libreoffice.org/59174
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/headless')
-rw-r--r-- | vcl/headless/svptext.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/vcl/headless/svptext.cxx b/vcl/headless/svptext.cxx index dbef813cd658..747fffe104f1 100644 --- a/vcl/headless/svptext.cxx +++ b/vcl/headless/svptext.cxx @@ -18,6 +18,7 @@ */ #include <sal/types.h> +#include <unotools/configmgr.hxx> #include <vcl/fontcharmap.hxx> #include <basegfx/range/b2ibox.hxx> #include <headless/svpgdi.hxx> @@ -103,6 +104,8 @@ bool SvpSalGraphics::GetGlyphOutline(const GlyphItem& rGlyph, basegfx::B2DPolyPo std::unique_ptr<SalLayout> SvpSalGraphics::GetTextLayout( ImplLayoutArgs& rArgs, int nFallbackLevel ) { + if (utl::ConfigManager::IsFuzzing()) + return nullptr; return m_aTextRenderImpl.GetTextLayout(rArgs, nFallbackLevel); } |