[Libreoffice-commits] core.git: sd/source

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Fri Mar 19 20:57:21 UTC 2021


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

New commits:
commit b7676c2fa79d035fd8746b6cf9099c94d0c120ec
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Fri Mar 19 15:28:34 2021 +0000
Commit:     Caolán McNamara <caolanm at 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 <caolanm at redhat.com>
    Reviewed-by: Caolán McNamara <caolanm at 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


More information about the Libreoffice-commits mailing list