freetype2/src/truetype
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
..
module.mk Update all copyright notices. 2023-01-17 09:18:25 +01:00
rules.mk Update all copyright notices. 2023-01-17 09:18:25 +01:00
truetype.c Update all copyright notices. 2023-01-17 09:18:25 +01:00
ttdriver.c [sfnt, truetype] Add `size_reset` to `MetricsVariations`. 2023-04-11 10:20:58 +02:00
ttdriver.h Update all copyright notices. 2023-01-17 09:18:25 +01:00
tterrors.h Update all copyright notices. 2023-01-17 09:18:25 +01:00
ttgload.c * src/truetype/ttgload.c (TT_Load_Simple_Glyph): Use for-loop. 2023-03-17 23:35:10 -04:00
ttgload.h Update all copyright notices. 2023-01-17 09:18:25 +01:00
ttgxvar.c [sfnt, truetype] Add `size_reset` to `MetricsVariations`. 2023-04-11 10:20:58 +02:00
ttgxvar.h [truetype, type1] Additional variation tags. 2023-02-08 14:58:46 +00:00
ttinterp.c * src/truetype/ttinterp.c: Remove outdated comments. 2023-04-13 06:34:32 +02:00
ttinterp.h [truetype] Simplify memory management. 2023-03-06 16:23:14 -05:00
ttobjs.c [truetype] tt_size_reset_height to take FT_Size 2023-04-17 12:32:04 -04:00
ttobjs.h [truetype] tt_size_reset_height to take FT_Size 2023-04-17 12:32:04 -04:00
ttpload.c Update all copyright notices. 2023-01-17 09:18:25 +01:00
ttpload.h Update all copyright notices. 2023-01-17 09:18:25 +01:00
ttsubpix.c * src/*: Replace leading underscores with trailing ones in dummy variables. 2023-02-26 20:18:54 +01:00
ttsubpix.h Update all copyright notices. 2023-01-17 09:18:25 +01:00