diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-01-08 16:42:46 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-01-09 10:03:54 +0100 |
commit | 088df374f01a28c06c4602f33fea2b717bf403f5 (patch) | |
tree | 7ec3c61c387b0784ba9cdf1f22b8f08b548314da /vcl | |
parent | 2157a3536f97ff5ae7c82611a801fef7e3708983 (diff) |
tdf#114704 use of float as intermediate causes out by one on large offsets
table offset integer value of 21281769 is correctly read, but on cast to float
it is represented as 21281768 and we're off by one when cast back to integer
later
Change-Id: I5694e14d72c04493ba15cc77485a734498a45468
Reviewed-on: https://gerrit.libreoffice.org/47607
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/fontsubset/cff.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/fontsubset/cff.cxx b/vcl/source/fontsubset/cff.cxx index 00b6492ad34c..284242882274 100644 --- a/vcl/source/fontsubset/cff.cxx +++ b/vcl/source/fontsubset/cff.cxx @@ -31,7 +31,7 @@ typedef long long S64; typedef sal_Int32 GlyphWidth; -typedef float RealType; +typedef double RealType; typedef RealType ValType; #include <vector> |