sd/source/ui/app/scalectrl.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit b7676c2fa79d035fd8746b6cf9099c94d0c120ec
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Fri Mar 19 15:28:34 2021 +0000
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Fri Mar 19 21:56:38 2021 +0100

    cid#1474113 Out-of-bounds read
    
    order of Precedence is % before -
    
    Change-Id: Ief011bb145be8246451ae3785bff7325ae28c222
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112759
    Tested-by: Caolán McNamara <caol...@redhat.com>
    Reviewed-by: Caolán McNamara <caol...@redhat.com>

diff --git a/sd/source/ui/app/scalectrl.cxx b/sd/source/ui/app/scalectrl.cxx
index e1826957b03e..6ab069f8a1e4 100644
--- a/sd/source/ui/app/scalectrl.cxx
+++ b/sd/source/ui/app/scalectrl.cxx
@@ -91,7 +91,7 @@ void SdScaleControl::Command(const CommandEvent& rCEvt)
         if (i > 11)
             nX = 1;
         else
-            nX = aTable[12 - i % 12];
+            nX = aTable[(12 - i) % 12];
         if (i > 11)
             nY = aTable[i % 12];
         else
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to