vcl/headless/CairoCommon.cxx |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit 6d8b48d63ca46306e5d4e6e9e5e7da67760e1736
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Fri Jan 20 11:05:27 2023 +0000
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Fri Jan 20 12:31:25 2023 +0000

    ofz#54895 Out-of-memory
    
    Change-Id: I2faf68d8ed56e7d2b44bc7cae953716ea6dd7172
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145878
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caol...@redhat.com>

diff --git a/vcl/headless/CairoCommon.cxx b/vcl/headless/CairoCommon.cxx
index 1a93f405562c..4706c7e344c0 100644
--- a/vcl/headless/CairoCommon.cxx
+++ b/vcl/headless/CairoCommon.cxx
@@ -1078,6 +1078,7 @@ bool CairoCommon::drawPolyLine(const 
basegfx::B2DHomMatrix& rObjectToDevice,
                 aObjectToDeviceInv.invert();
                 fLineWidth
                     = (aObjectToDeviceInv * 
basegfx::B2DVector(MaxNormalLineWidth, 0)).getLength();
+                fLineWidth = std::min(fLineWidth, 2048.0);
             }
         }
     }

Reply via email to