freetype2/src
Ben Wagner c4fe77c3f0 [truetype] tt_size_reset_height to take FT_Size
The `MetricsVariations` `FT_Size_Reset_Func` is defined to take an
`FT_Size`. Because `tt_size_reset_height` is to be used as such a
function, it must also take an `FT_Size` instead of a `TT_Size`. Even
though the pointers passed will be the same at runtime, calling a
function through a pointer of a different type from the original
function pointer type is undefined behavior. This may be caught at
runtime by Control Flow Integrity with something like clang's
`cfi-icall`.

Issue: https://crbug.com/1433651

* src/truetype/ttobjs.h (tt_size_reset_height): take `FT_Size`

* src/truetype/ttobjs.c (tt_size_reset_height): take `FT_Size` and
update documentation
2023-04-17 12:32:04 -04:00
..
autofit * src/*: Replace leading underscores with trailing ones in dummy variables. 2023-02-26 20:18:54 +01:00
base * src/base/ftsynth.c (FT_GlyphSlot_AdjustWeight): New API. 2023-03-16 03:28:59 +00:00
bdf Avoid reserved identifiers that are globally defined. 2023-02-08 21:09:30 +01:00
bzip2 Update all copyright notices. 2023-01-17 09:18:25 +01:00
cache Update all copyright notices. 2023-01-17 09:18:25 +01:00
cff [sfnt, truetype] Add `size_reset` to `MetricsVariations`. 2023-04-11 10:20:58 +02:00
cid [cff,cid,type1] Shorten de-referencing. 2023-03-03 17:21:10 +00:00
dlg * src/*: Replace leading underscores with trailing ones in dummy variables. 2023-02-26 20:18:54 +01:00
gxvalid Update all copyright notices. 2023-01-17 09:18:25 +01:00
gzip [gzip] File `infback.c` is not needed. 2023-03-07 08:55:58 +01:00
lzw Fix 'fall-through' warning messages. 2023-02-08 21:09:32 +01:00
otvalid Update all copyright notices. 2023-01-17 09:18:25 +01:00
pcf Whitespace. 2023-01-28 17:04:11 +01:00
pfr Align `char_next` return types. 2023-04-10 15:30:43 +00:00
psaux Align `char_next` return types. 2023-04-10 15:30:43 +00:00
pshinter Fix `FT_LOCAL` and `FT_LOCAL_DEF` tags. 2023-02-08 21:09:32 +01:00
psnames Align `char_next` return types. 2023-04-10 15:30:43 +00:00
raster [raster] Clean up contour indexing. 2023-02-21 16:17:07 +00:00
sdf * src/sdf/ftsdf.c (get_min_distance_cubic): Fix C4701, typos. 2023-02-20 22:29:18 -05:00
sfnt [sfnt, truetype] Add `size_reset` to `MetricsVariations`. 2023-04-11 10:20:58 +02:00
smooth [base] Clean up contour indexing. 2023-02-20 16:33:45 +00:00
svg Update all copyright notices. 2023-01-17 09:18:25 +01:00
tools apinames.c: Add comment. 2023-03-08 10:49:42 +01:00
truetype [truetype] tt_size_reset_height to take FT_Size 2023-04-17 12:32:04 -04:00
type1 [cff,cid,type1] Shorten de-referencing. 2023-03-03 17:21:10 +00:00
type42 Fix 'fall-through' warning messages. 2023-02-08 21:09:32 +01:00
winfonts Align `char_next` return types. 2023-04-10 15:30:43 +00:00