vcl/source/gdi/metaact.cxx |    4 ++++
 vcl/workben/fftester.cxx   |    5 +++++
 2 files changed, 9 insertions(+)

New commits:
commit f5a329afb1db8ccfea9ee3053abdd4b9b1a15647
Author:     Caolán McNamara <[email protected]>
AuthorDate: Sun Mar 1 14:55:26 2026 +0000
Commit:     Caolán McNamara <[email protected]>
CommitDate: Sun Mar 1 19:57:29 2026 +0100

    ofz#482617787 Integer-overflow
    
    Change-Id: Ib04c77f37d20d8704de953031b8230c286e082a9
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/200711
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <[email protected]>

diff --git a/vcl/source/gdi/metaact.cxx b/vcl/source/gdi/metaact.cxx
index 060ee000fc12..2da8fe96f887 100644
--- a/vcl/source/gdi/metaact.cxx
+++ b/vcl/source/gdi/metaact.cxx
@@ -221,6 +221,8 @@ void MetaLineAction::Execute( OutputDevice* pOut )
     {
         return;
     }
+    if (!AllowDim(pOut->LogicToPixel(Size(maLineInfo.GetWidth(), 0)).Width()))
+        return;
 
     if( maLineInfo.IsDefault() )
         pOut->DrawLine( maStartPt, maEndPt );
@@ -476,6 +478,8 @@ void MetaPolyLineAction::Execute( OutputDevice* pOut )
 {
     if (!AllowRect(pOut->LogicToPixel(maPoly.GetBoundRect())))
         return;
+    if (!AllowDim(pOut->LogicToPixel(Size(maLineInfo.GetWidth(), 0)).Width()))
+        return;
 
     if( maLineInfo.IsDefault() )
         pOut->DrawPolyLine( maPoly );
commit b048917f73c173688f6779a261388814104a568f
Author:     Caolán McNamara <[email protected]>
AuthorDate: Sun Mar 1 16:04:48 2026 +0000
Commit:     Caolán McNamara <[email protected]>
CommitDate: Sun Mar 1 19:57:19 2026 +0100

    make fftester work for relative paths
    
    Change-Id: I57bd70302d01d143007c7fb79d2d04fbd2c3ce85
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/200716
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <[email protected]>

diff --git a/vcl/workben/fftester.cxx b/vcl/workben/fftester.cxx
index 5fee71a4f664..f073909bad68 100644
--- a/vcl/workben/fftester.cxx
+++ b/vcl/workben/fftester.cxx
@@ -63,6 +63,7 @@
 #include <filter/XpmReader.hxx>
 #include <osl/file.hxx>
 #include <osl/module.hxx>
+#include <osl/process.h>
 #include <rtl/bootstrap.hxx>
 #include <tools/stream.hxx>
 #include <vcl/gdimtf.hxx>
@@ -116,6 +117,10 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv)
         OUString out;
         osl::File::getFileURLFromSystemPath(in, out);
 
+        OUString cwd;
+        osl_getProcessWorkingDir(&cwd.pData);
+        osl::File::getAbsoluteFileURL(cwd, out, out);
+
         tools::extendApplicationEnvironment();
 
         Reference< XComponentContext > xContext = 
defaultBootstrap_InitialComponentContext();

Reply via email to