diff options
author | Werner Lemberg <wl@gnu.org> | 2017-05-31 16:16:50 +0200 |
---|---|---|
committer | Werner Lemberg <wl@gnu.org> | 2017-05-31 16:16:50 +0200 |
commit | e66d7300fec2f9fc60e43a924af1972b07ee316b (patch) | |
tree | 22a117592393875eaca98d4780ce266abac8f65f /Jamfile | |
parent | 9b710cd56eb66c379686e82d7fe371c212aebc37 (diff) | |
download | freetype2-e66d7300fec2f9fc60e43a924af1972b07ee316b.tar.gz |
[cff] 32bit integer overflow run-time errors 2/2 (#46149).
This commit handles the new engine.
* include/freetype/internal/ftcalc.h (OVERFLOW_ADD_INT32,
OVERFLOW_SUB_INT32, OVERFLOW_MUL_INT32, NEG_INT, NEG_LONG,
NEG_INT32): New macros.
* src/cff/cf2ft.c (cf2_getScaleAndHintFlag): Use OVERFLOW_ADD_INT32.
* src/cff/cf2hints.c (cf2_getWindingMomentum, cf2_hint_init,
cf2_hintmap_map, cf2_glyphpath_hintPoint,
cf2_glyphpath_computeIntersection, cf2_glyphpath_computeOffset,
cf2_glyphpath_lineTo, cf2_glyphpath_curveTo): Use
OVERFLOW_ADD_INT32, OVERFLOW_SUB_INT32, OVERFLOW_MUL_INT32, and
NEG_INT32 where appropriate.
* src/cff/cf2intrp.c (cf2_doFlex, cf2_doBlend,
cf2_interpT2CharString): Ditto.
Also add some other code where needed to avoid overflow.
Diffstat (limited to 'Jamfile')
0 files changed, 0 insertions, 0 deletions