From 3a5bddfa56730e7c7bf566ebcefeb6d9a46e672c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Sat, 9 Aug 2025 12:27:07 +0100 Subject: [PATCH] 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 --- svgio/source/svgreader/svgrectnode.cxx | 2 ++ 1 file changed, 2 insertions(+) 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;