summaryrefslogtreecommitdiff
path: root/include/freetype/internal/services/svmetric.h
diff options
context:
space:
mode:
authorBen Wagner <bungeman@chromum.org>2023-04-17 11:17:16 -0400
committerBen Wagner <bungeman@chromum.org>2023-04-17 12:32:04 -0400
commitc4fe77c3f072fab930267f95510562e7aeb03302 (patch)
treea77ff618747c085561d80f2936e1e978c3b3bc9b /include/freetype/internal/services/svmetric.h
parentea9fca0add69e1613eee3290e18c1f8cb4d17a43 (diff)
downloadfreetype2-c4fe77c3f072fab930267f95510562e7aeb03302.tar.gz
[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
Diffstat (limited to 'include/freetype/internal/services/svmetric.h')
0 files changed, 0 insertions, 0 deletions