diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2019-05-28 15:08:21 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2019-05-28 17:06:55 +0200 |
commit | 8bc286821e54699006b612a72739380098678b18 (patch) | |
tree | 8b19c20175a2672c2a0d022a7942456cd4f24d57 /sd/source/ui | |
parent | b9139c1a41acca28e48efdbc664d384734f81ce9 (diff) |
Avoid -fsanitize=signed-integer-overflow
...with e.g. `--convert-to pdf abw/abi10006-1.abw` as obtained by
bin/get-bugzilla-attachments-by-mimetype, reporting
> vcl/source/fontsubset/cff.cxx:1697:63: runtime error: signed integer overflow: 55810 * 52845 cannot be represented in type 'int'
and
> vcl/source/fontsubset/cff.cxx:1137:38: runtime error: signed integer overflow: 233492066 * 52845 cannot be represented in type 'int'
Using unsigned here is faithful to the algorithm presented in Chapter 7
Encryption of "Adobe Type 1 Font Format" (<http://wwwimages.adobe.com/
www.adobe.com/content/dam/acom/en/devnet/font/pdfs/T1_SPEC.pdf>).
Change-Id: Ic27a5ebbe5f766fef425d241e14487ea4ae81da4
Reviewed-on: https://gerrit.libreoffice.org/73104
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sd/source/ui')
0 files changed, 0 insertions, 0 deletions