-
c0414119
by Werner Lemberg at 2023-05-07T14:59:21+02:00
* src/cff/*: Clean up interface.
Ensure that all driver functions use the signature of the service or driver.
This avoids pointer mismatches, which are technically undefined behaviour.
Recent compilers are more picky in catching them as part of Control Flow
Integrity tests.
-
bc7466ad
by Werner Lemberg at 2023-05-07T14:59:50+02:00
* src/bdf/bdfdrivr.c: Clean up interface.
Ensure that all driver functions use the signature of the service or driver.
This avoids pointer mismatches, which are technically undefined behaviour.
Recent compilers are more picky in catching them as part of Control Flow
Integrity tests.
-
b9ce8e33
by Werner Lemberg at 2023-05-07T14:59:50+02:00
* src/cid/cidriver.c: Clean up interface.
Ensure that all driver functions use the signature of the service or driver.
This avoids pointer mismatches, which are technically undefined behaviour.
Recent compilers are more picky in catching them as part of Control Flow
Integrity tests.
-
0685b0ad
by Werner Lemberg at 2023-05-07T14:59:50+02:00
* src/pcf/pcfdrivr.c: Clean up interface.
Ensure that all driver functions use the signature of the service or driver.
This avoids pointer mismatches, which are technically undefined behaviour.
Recent compilers are more picky in catching them as part of Control Flow
Integrity tests.
-
4360e20e
by Werner Lemberg at 2023-05-07T14:59:50+02:00
* src/pfr/pfrdrivr.c: face -> pfrface, pfrface -> face.
-
ceba488c
by Werner Lemberg at 2023-05-07T14:59:50+02:00
* src/psnames/psmodule.c: Use `FT_CALLBACK_DEF`.
-
e245951c
by Werner Lemberg at 2023-05-07T14:59:50+02:00
* src/sfnt/sfdriver.c, src/sfnt/ttbdf.c: Clean up interface.
Ensure that all driver functions use the signature of the service or driver.
This avoids pointer mismatches, which are technically undefined behaviour.
Recent compilers are more picky in catching them as part of Control Flow
Integrity tests.
* src/sfnt/sfdriver.c (sfnt_load_table): New wrapper function.
(sfnt_service_sfnt_table): Use it.
-
3a85bf0b
by Werner Lemberg at 2023-05-07T14:59:50+02:00
* src/truetype/*: Clean up interface.
Ensure that all driver functions use the signature of the service or driver.
This avoids pointer mismatches, which are technically undefined behaviour.
Recent compilers are more picky in catching them as part of Control Flow
Integrity tests.
-
7cc5dfa2
by Werner Lemberg at 2023-05-07T14:59:50+02:00
* src/type1/*: Clean up interface.
Ensure that all driver functions use the signature of the service or driver.
This avoids pointer mismatches, which are technically undefined behaviour.
Recent compilers are more picky in catching them as part of Control Flow
Integrity tests.
-
ff0ef828
by Werner Lemberg at 2023-05-07T14:59:50+02:00
* src/type42/t42drivr.c: Clean up interface.
Ensure that all driver functions use the signature of the service or driver.
This avoids pointer mismatches, which are technically undefined behaviour.
Recent compilers are more picky in catching them as part of Control Flow
Integrity tests.
-
e05c0562
by Werner Lemberg at 2023-05-07T14:59:50+02:00
[base] Signature fixes.
-
95d635ea
by Werner Lemberg at 2023-05-07T14:59:50+02:00
[truetype] Signature fixes.
-
563f4011
by Werner Lemberg at 2023-05-07T14:59:50+02:00
* src/type1/t1load.c: Signature fixes.
-
4a28ff3d
by Werner Lemberg at 2023-05-07T14:59:50+02:00
* src/cff/cffcmap.c: Signature fixes.
-
3297a7a9
by Werner Lemberg at 2023-05-07T15:23:46+02:00
* src/cid/cidload.c: Signature fixes.
-
19aca966
by Werner Lemberg at 2023-05-07T15:57:06+02:00
[pfr] Signature fixes.
-
394c4de9
by Werner Lemberg at 2023-05-07T16:25:37+02:00
* src/type42/t42parse.c: Signature fixes.
-
5f7a26fd
by Werner Lemberg at 2023-05-07T16:30:21+02:00
* src/winfonts/winfnt.c: Signature fixes.
-
60c11919
by Werner Lemberg at 2023-05-07T16:42:01+02:00
* src/pcf/pcfdrivr.c: Signature fix.
-
365eb10d
by Werner Lemberg at 2023-05-07T19:16:38+02:00
* src/sfnt/ttcmap: Signature fixes.
-
274e0dd5
by Werner Lemberg at 2023-05-07T19:54:46+02:00
[autofit] Signature fixes.
-
669b7f7d
by Werner Lemberg at 2023-05-07T20:26:12+02:00
[pshinter] Signature fixes.
* src/pshinter/pshrec.c (t1_hints_close, t1_hints_apply): New wrapper
functions.
(t1_hints_funcs_init): Use them.
(t2_hints_close, t2_hints_apply): New wrapper functions.
(t2_hints_funcs_init): Use them.
-
02283a6e
by Werner Lemberg at 2023-05-07T20:44:20+02:00
[smooth] Signature fixes.
-
6e7b1b76
by Werner Lemberg at 2023-05-07T20:51:32+02:00
[raster] Signature fixes.
-
924329a9
by Werner Lemberg at 2023-05-07T20:57:22+02:00
* src/svg/ftsvg.c: Signature fixes.
-
c8ae37ba
by Werner Lemberg at 2023-05-07T21:06:14+02:00
[sdf] Signature fixes.
-
d52166ae
by Werner Lemberg at 2023-05-08T06:21:16+02:00
[cache] Signature fixes.
* src/cache/ftcglyph.c, src/cache/ftcglyph.h (FTC_GNode_Compare): Remove
redundant function. It is equivalent to `ftc_gnode_compare` and becomes
completely meaningless with fixed signatures.
Update all callers.
* src/cache/ftcsbits.c, src/cache/ftcsbits.h (FTC_SNode_Compare): Remove
redundant function. It is equivalent to `ftc_snode_compare` and becomes
completely meaningless with fixed signatures.
Update all callers.
-
968fc281
by Werner Lemberg at 2023-05-08T06:26:43+02:00
* src/bzip2/ftbzip2.c: Signature fixes.
-
bd37b847
by Werner Lemberg at 2023-05-08T06:46:55+02:00
* src/psaux/t1cmap.c: Signature fixes.
-
5edd6d52
by Werner Lemberg at 2023-05-08T07:22:59+02:00
Minor compiler warning fixes.
* src/autofit/afcjk.c (af_cjk_get_standard_widths), src/autofit/aflatin.c
(af_latin_get_standard_widths): Use `FT_CALLBACK_DEF`.
* src/cff/cffparse.c (cff_parser_run): Initialize and fix allocation of `q`.