freetype2/src/sfnt
Ben Wagner 5858fa16ca [colr] Avoid overflow in range checks
In 32 bit builds `FT_ULong` is 32 bits and can silently overflow when a
large number is read into one and then it is summed or multiplied with
another number.  Checks for range overflow must be written so that they
themselves do not overflow.  Also ensure that the table_size is always the
first part of the range check and consistently use `<` or `<=`.

* src/sfnt/ttcolr.c (tt_face_load_colr): Avoid overflow.
(find_base_glyph_v1_record): Remove old work-around.

Bug: https://issues.chromium.org/issues/41495455
Bug: https://issues.chromium.org/issues/40945818
2024-05-08 05:01:16 +02:00
..
module.mk Update all copyright notices. 2024-01-27 11:11:22 -05:00
pngshim.c Update all copyright notices. 2024-01-27 11:11:22 -05:00
pngshim.h Update all copyright notices. 2024-01-27 11:11:22 -05:00
rules.mk Update all copyright notices. 2024-01-27 11:11:22 -05:00
sfdriver.c Update all copyright notices. 2024-01-27 11:11:22 -05:00
sfdriver.h Update all copyright notices. 2024-01-27 11:11:22 -05:00
sferrors.h Update all copyright notices. 2024-01-27 11:11:22 -05:00
sfnt.c Update all copyright notices. 2024-01-27 11:11:22 -05:00
sfobjs.c Update all copyright notices. 2024-01-27 11:11:22 -05:00
sfobjs.h Update all copyright notices. 2024-01-27 11:11:22 -05:00
sfwoff.c [woff,woff2] Limit the number of tables and use FT_MSB. 2024-05-03 15:44:57 +00:00
sfwoff.h Update all copyright notices. 2024-01-27 11:11:22 -05:00
sfwoff2.c * src/sfnt/sfwoff2.c (woff2_open_font): Fix copy-paste typo. 2024-05-03 16:04:35 +00:00
sfwoff2.h Update all copyright notices. 2024-01-27 11:11:22 -05:00
ttbdf.c Update all copyright notices. 2024-01-27 11:11:22 -05:00
ttbdf.h Update all copyright notices. 2024-01-27 11:11:22 -05:00
ttcmap.c Update all copyright notices. 2024-01-27 11:11:22 -05:00
ttcmap.h Update all copyright notices. 2024-01-27 11:11:22 -05:00
ttcmapc.h Update all copyright notices. 2024-01-27 11:11:22 -05:00
ttcolr.c [colr] Avoid overflow in range checks 2024-05-08 05:01:16 +02:00
ttcolr.h Update all copyright notices. 2024-01-27 11:11:22 -05:00
ttcpal.c Update all copyright notices. 2024-01-27 11:11:22 -05:00
ttcpal.h Update all copyright notices. 2024-01-27 11:11:22 -05:00
ttgpos.c * src/sfnt/ttgpos.c (tt_gpos_get_glyph_class): Fix warning C4018. 2024-01-27 10:47:10 -05:00
ttgpos.h Add support for kerning from 'GPOS' tables. 2024-01-27 10:55:04 +01:00
ttkern.c Update all copyright notices. 2024-01-27 11:11:22 -05:00
ttkern.h Update all copyright notices. 2024-01-27 11:11:22 -05:00
ttload.c Update all copyright notices. 2024-01-27 11:11:22 -05:00
ttload.h Update all copyright notices. 2024-01-27 11:11:22 -05:00
ttmtx.c Update all copyright notices. 2024-01-27 11:11:22 -05:00
ttmtx.h Update all copyright notices. 2024-01-27 11:11:22 -05:00
ttpost.c Update all copyright notices. 2024-01-27 11:11:22 -05:00
ttpost.h Update all copyright notices. 2024-01-27 11:11:22 -05:00
ttsbit.c Update all copyright notices. 2024-01-27 11:11:22 -05:00
ttsbit.h Update all copyright notices. 2024-01-27 11:11:22 -05:00
ttsvg.c Update all copyright notices. 2024-01-27 11:11:22 -05:00
ttsvg.h Update all copyright notices. 2024-01-27 11:11:22 -05:00
woff2tags.c Update all copyright notices. 2024-01-27 11:11:22 -05:00
woff2tags.h Update all copyright notices. 2024-01-27 11:11:22 -05:00