freetype/src
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
..
autofit * src/autofit/aflatin.c (af_latin_metrics_scale_dim): Remove FT_ABS. 2024-05-04 16:42:47 -04:00
base Update all copyright notices. 2024-01-27 11:11:22 -05:00
bdf Replace sprintf with snprintf. 2023-05-23 13:18:01 +02:00
bzip2 Update all copyright notices. 2024-01-27 11:11:22 -05:00
cache * src/cache/ftccache.c (FTC_Cache_RemoveFaceID): Remove nodes instantly. 2024-04-29 22:34:09 -04:00
cff [cff, truetype] Always set up default variable instance. 2024-02-29 07:06:46 +01:00
cid Avoid n^2 scanning for binary data. 2024-03-08 17:47:43 +01:00
dlg Update all copyright notices. 2024-01-27 11:11:22 -05:00
gxvalid Update all copyright notices. 2024-01-27 11:11:22 -05:00
gzip Update all copyright notices. 2024-01-27 11:11:22 -05:00
lzw Update all copyright notices. 2024-01-27 11:11:22 -05:00
otvalid Update all copyright notices. 2024-01-27 11:11:22 -05:00
pcf * src/pcf/pcfutil.c (BSWAP16): Limit clang support. 2023-10-21 19:08:20 -04:00
pfr Update all copyright notices. 2024-01-27 11:11:22 -05:00
psaux Update all copyright notices. 2024-01-27 11:11:22 -05:00
pshinter Update all copyright notices. 2024-01-27 11:11:22 -05:00
psnames Update all copyright notices. 2024-01-27 11:11:22 -05:00
raster Update all copyright notices. 2024-01-27 11:11:22 -05:00
sdf [sdf, bsdf] Use shared FT_SqrtFixed. 2024-05-06 13:39:06 +00:00
sfnt [colr] Avoid overflow in range checks 2024-05-08 05:01:16 +02:00
smooth [smooth] Switch to vertical bisections. 2024-04-14 15:37:57 -04:00
svg Update all copyright notices. 2024-01-27 11:11:22 -05:00
tools Update all copyright notices. 2024-01-27 11:11:22 -05:00
truetype [sfnt] Use faster macros in checksums. 2024-05-01 23:19:31 -04:00
type1 Update all copyright notices. 2024-01-27 11:11:22 -05:00
type42 Update all copyright notices. 2024-01-27 11:11:22 -05:00
winfonts Update all copyright notices. 2024-01-27 11:11:22 -05:00