diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-11-01 08:47:22 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-11-01 10:44:52 +0100 |
commit | 9948e9e736d005f1a5a5ad4955e55aefddc8ef54 (patch) | |
tree | cdbbc18e60f1a4d990d69094c8e3859b6fe3fe51 /emfio/source | |
parent | 7d936a98cd8f44e3a99f121b610b9040ae2e8381 (diff) |
ofz#40575 Integer-overflow
Change-Id: I4b6b6f2ba0c4dd013489b334822e6639f265c6b2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124539
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'emfio/source')
-rw-r--r-- | emfio/source/reader/mtftools.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/emfio/source/reader/mtftools.cxx b/emfio/source/reader/mtftools.cxx index 4a3242c65451..b98fa7c11d19 100644 --- a/emfio/source/reader/mtftools.cxx +++ b/emfio/source/reader/mtftools.cxx @@ -1686,7 +1686,7 @@ namespace emfio if (pDXArry) { - sal_Int32 nSumX = 0, nSumY = 0; + sal_Int64 nSumX = 0, nSumY = 0; for (sal_Int32 i = 0; i < rText.getLength(); i++ ) { nSumX += (*pDXArry)[i]; |