basegfx/source/curve/b2dcubicbezier.cxx     |    2 ++
 comphelper/source/misc/backupfilehelper.cxx |    7 +++----
 include/basegfx/vector/b3dvector.hxx        |    3 +++
 3 files changed, 8 insertions(+), 4 deletions(-)

New commits:
commit e6f5e1e45b882ac98f6d31882ebb6e950994d27d
Author:     Caolán McNamara <caolan.mcnam...@collabora.com>
AuthorDate: Sat Aug 2 13:07:11 2025 +0100
Commit:     Caolán McNamara <caolan.mcnam...@collabora.com>
CommitDate: Sat Aug 2 16:06:10 2025 +0200

    cid#1660127 Resource leak
    
    Change-Id: I789793eecc6642f786edd43c30fb6a05feded4bc
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188819
    Tested-by: Caolán McNamara <caolan.mcnam...@collabora.com>
    Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com>

diff --git a/comphelper/source/misc/backupfilehelper.cxx 
b/comphelper/source/misc/backupfilehelper.cxx
index cc1886f93ea4..8abd65b7d9fa 100644
--- a/comphelper/source/misc/backupfilehelper.cxx
+++ b/comphelper/source/misc/backupfilehelper.cxx
@@ -977,13 +977,12 @@ namespace
 
                         nSize -= nToTransfer;
                     }
-
+                }
 #if !defined Z_PREFIX
-                    deflateEnd(&zstream);
+                deflateEnd(&zstream);
 #else
-                    z_deflateEnd(&zstream);
+                z_deflateEnd(&zstream);
 #endif
-                }
             }
 
             maFile->close();
commit a87e99e1b1c17b9efbe1a31cbe03ed0ddea9dca4
Author:     Caolán McNamara <caolan.mcnam...@collabora.com>
AuthorDate: Sat Aug 2 12:57:47 2025 +0100
Commit:     Caolán McNamara <caolan.mcnam...@collabora.com>
CommitDate: Sat Aug 2 16:05:57 2025 +0200

    cid#1659963 Division or modulo by float zero
    
    Change-Id: I9172cd18e82faada2b603543488e0b0e882da18a
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188818
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com>

diff --git a/basegfx/source/curve/b2dcubicbezier.cxx 
b/basegfx/source/curve/b2dcubicbezier.cxx
index 7485ccc54a9b..34a3806e3b1e 100644
--- a/basegfx/source/curve/b2dcubicbezier.cxx
+++ b/basegfx/source/curve/b2dcubicbezier.cxx
@@ -25,6 +25,7 @@
 
 #include <osl/diagnose.h>
 
+#include <cassert>
 #include <cmath>
 #include <limits>
 
@@ -819,6 +820,7 @@ namespace basegfx
 
                     if(!bStartIsZero)
                     {
+                        assert(fEnd != 0.0 && "help coverity see it's not 
zero");
                         fStart /= fEnd;
                     }
                 }
diff --git a/include/basegfx/vector/b3dvector.hxx 
b/include/basegfx/vector/b3dvector.hxx
index df7638f73268..29b5a0457978 100644
--- a/include/basegfx/vector/b3dvector.hxx
+++ b/include/basegfx/vector/b3dvector.hxx
@@ -21,6 +21,7 @@
 
 #include <basegfx/tuple/b3dtuple.hxx>
 #include <basegfx/basegfxdllapi.h>
+#include <cassert>
 
 namespace basegfx
 {
@@ -138,6 +139,8 @@ namespace basegfx
 
             if(!::basegfx::fTools::equalZero(fLenNow))
             {
+                assert(fLenNow != 0.0 && "help coverity see it's not zero");
+
                 const double fOne(1.0);
 
                 if(!::basegfx::fTools::equal(fOne, fLenNow))

Reply via email to