diff options
author | Caolán McNamara <caolanm@redhat.com> | 2022-02-25 12:33:13 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2022-02-25 16:21:07 +0100 |
commit | 71080060ec5f19c1499e17784ae8ae617d9b8142 (patch) | |
tree | d1644d92c66f644850af4206169dec95740c76f4 /vcl | |
parent | 8f25d42938977b34f3281238a92fb34ebea5838c (diff) |
lastPoint might be 0xFFFF
LIBREOFFICE-KYYAZMB9
Change-Id: Ic0d95bd39a01dc1e5e0fec83dcc2c40b3f23b747
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130534
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/fontsubset/sft.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/fontsubset/sft.cxx b/vcl/source/fontsubset/sft.cxx index dfee625308b2..bfd8c1d5e8e8 100644 --- a/vcl/source/fontsubset/sft.cxx +++ b/vcl/source/fontsubset/sft.cxx @@ -379,7 +379,7 @@ static int GetSimpleTTOutline(AbstractTrueTypeFont const *ttf, sal_uInt32 glyphI const sal_uInt8* p = ptr + nOffset; const sal_uInt32 nBytesRemaining = nTableSize - nOffset; - const sal_uInt16 palen = lastPoint+1; + const sal_uInt32 palen = lastPoint+1; //at a minimum its one byte per entry if (palen > nBytesRemaining || lastPoint > nBytesRemaining-1) |