diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-03-19 15:28:34 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-03-19 21:56:38 +0100 |
commit | b7676c2fa79d035fd8746b6cf9099c94d0c120ec (patch) | |
tree | 68956c85e69f896fed93b724c36d60af3d62d0da /sd/source | |
parent | 401105d4fc9c5a1746b4d887554b169e023a06c1 (diff) |
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@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sd/source')
-rw-r--r-- | sd/source/ui/app/scalectrl.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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 |