svgio/source/svgreader/svgrectnode.cxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 3a5bddfa56730e7c7bf566ebcefeb6d9a46e672c
Author:     Caolán McNamara <caolan.mcnam...@collabora.com>
AuthorDate: Sat Aug 9 12:27:07 2025 +0100
Commit:     David Gilbert <freedesk...@treblig.org>
CommitDate: Sat Aug 9 15:02:20 2025 +0200

    cid#1659758 silence Division or modulo by float zero
    
    Change-Id: I263e8d0e2658bfa4de30c4954101a9126609917e
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189256
    Tested-by: Jenkins
    Reviewed-by: David Gilbert <freedesk...@treblig.org>

diff --git a/svgio/source/svgreader/svgrectnode.cxx 
b/svgio/source/svgreader/svgrectnode.cxx
index 3829f21a678b..90bb2285671e 100644
--- a/svgio/source/svgreader/svgrectnode.cxx
+++ b/svgio/source/svgreader/svgrectnode.cxx
@@ -183,6 +183,8 @@ namespace svgio::svgreader
                     frX = frY;
                 }
 
+                assert(fWidth != 0 && fHeight != 0 && "help coverity see it's 
not zero");
+
                 frX /= fWidth;
                 frY /= fHeight;
 

Reply via email to