diff options
-rw-r--r-- | vcl/unx/generic/gdi/cairotextrender.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/vcl/unx/generic/gdi/cairotextrender.cxx b/vcl/unx/generic/gdi/cairotextrender.cxx index 7bd74f0a4830..878eb3e1ac99 100644 --- a/vcl/unx/generic/gdi/cairotextrender.cxx +++ b/vcl/unx/generic/gdi/cairotextrender.cxx @@ -266,6 +266,12 @@ void CairoTextRender::DrawTextLayout(const GenericSalLayout& rLayout, const SalG return; } + if (nWidth > 4024) + { + SAL_WARN("vcl", "rendering text would use > 2G Memory: " << nWidth); + return; + } + if (__lsan_disable) __lsan_disable(); #endif |