svx/source/svdraw/svdpdf.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit f179e3aa000f38eb8229828a0b0e56a4b5724506
Author:     Caolán McNamara <[email protected]>
AuthorDate: Fri Mar 6 10:35:59 2026 +0000
Commit:     Caolán McNamara <[email protected]>
CommitDate: Fri Mar 6 17:06:43 2026 +0100

    ofz#474183568 Integer-overflow, try harder
    
    another similar subcase
    
    Change-Id: Iaeca78aee8185b5e03764a12f5a33f6eccca9a7e
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/201115
    Reviewed-by: Caolán McNamara <[email protected]>
    Tested-by: Jenkins

diff --git a/svx/source/svdraw/svdpdf.cxx b/svx/source/svdraw/svdpdf.cxx
index 3773094c56ad..049d392eda6b 100644
--- a/svx/source/svdraw/svdpdf.cxx
+++ b/svx/source/svdraw/svdpdf.cxx
@@ -2169,7 +2169,8 @@ void 
ImpSdrPdfImport::ImportPath(std::unique_ptr<vcl::pdf::PDFiumPageObject> con
     float fWidth = pPageObject->getStrokeWidth();
     const double dWidth = 0.5 * fabs(std::hypot(aPathMatrix.a(), 
aPathMatrix.c()) * fWidth);
     const double fLineWidth = convertPointToMm100(dWidth);
-    if (fLineWidth < 0 || fLineWidth > std::numeric_limits<sal_Int32>::max())
+    if (std::isnan(fLineWidth) || fLineWidth < 0
+        || fLineWidth > std::numeric_limits<sal_Int32>::max())
     {
         SAL_WARN("sd.filter", "Ignoring bogus line width: " << fLineWidth);
         mnLineWidth = 0;

Reply via email to