[Libreoffice-commits] core.git: vcl/headless
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Thu Aug 16 15:16:54 UTC 2018
vcl/headless/svptext.cxx | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit a518d1acf7f2f9952ab1d20f3185615351655ef8
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Thu Aug 16 13:59:26 2018 +0100
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Thu Aug 16 17:16:29 2018 +0200
skip text layout when fuzzing
Change-Id: I4d1c0ce31c4bfde0c1c681235868f6e5484fb561
Reviewed-on: https://gerrit.libreoffice.org/59174
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
Tested-by: Caolán McNamara <caolanm at redhat.com>
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);
}
More information about the Libreoffice-commits
mailing list