freetype2/src
Ben Wagner 65be4b2112 [mm] Delay setting blend weight and design position.
Previously the `blend->weight_vector`, `blend->default_weight_vector`,
and `blend->design_pos` were set early to allocated but uninitialized
memory under the assumption that the memory would eventually be
initialized. However, it is possible that some of the required
keywords may not actually be present, leaving the memory uninitialized.
This is different from a present but invalid table, which would produce
an error.

Reported as
  https://bugs.chromium.org/p/chromium/issues/detail?id=1261762

* src/type1/t1load.c (t1_allocate_blend): Remove early allocation and
initialization.
(parse_blend_design_positions, parse_weight_vector): Parse into local
and assign to blend if valid.
(T1_Open_Face): Check that if a blend exists that it has the weight
vector and design positions.
2021-10-21 09:55:28 -04:00
..
autofit * src/autofit/afhints.c (af_glyph_hints_reload): Decrease casting. 2021-09-30 22:59:04 -04:00
base [base] Initialize stream memory earlier. 2021-09-22 00:30:03 -04:00
bdf [bdf, cid, pfr, winfonts] Improve rejection of other font formats. 2021-10-19 22:59:46 +02:00
bzip2 Replace boolean allocation macros with MEM ones. 2021-09-14 21:32:43 -04:00
cache [cache] Minor clean-ups. 2021-09-18 07:05:55 -04:00
cff [cff] Commit vstore data and regions on allocation. 2021-10-21 09:48:38 -04:00
cid [bdf, cid, pfr, winfonts] Improve rejection of other font formats. 2021-10-19 22:59:46 +02:00
dlg [dlg] Synchronize with upstream. 2021-09-07 06:40:55 -07:00
gxvalid Whitespace formatting. 2021-08-22 22:32:07 -04:00
gzip Replace boolean allocation macros with MEM ones. 2021-09-14 21:32:43 -04:00
lzw s/0/NULL/ where appropriate. 2021-09-01 21:37:21 -04:00
otvalid Whitespace formatting. 2021-08-22 22:32:07 -04:00
pcf [pcf] Zero out the allocated properties. 2021-10-18 20:35:28 -04:00
pfr [bdf, cid, pfr, winfonts] Improve rejection of other font formats. 2021-10-19 22:59:46 +02:00
psaux [psaux] Signedness revisions. 2021-10-10 23:12:12 -04:00
pshinter [pshinter] Additional clean-ups. 2021-10-04 23:10:59 -04:00
psnames Replace boolean allocation macros with MEM ones. 2021-09-14 21:32:43 -04:00
raster [smooth, raster, sdf] Clean up initialization calls. 2021-09-02 23:30:31 -04:00
sdf [smooth, raster, sdf] Clean up initialization calls. 2021-09-02 23:30:31 -04:00
sfnt [sfnt] Delay setting gasp ranges and count until computed. 2021-10-20 11:45:15 -04:00
smooth * src/smooth/ftgrays.c (FT_DIV_MOD): Limit the ARM workaround. 2021-10-05 16:28:40 -04:00
tools * src/tools/apinames.c: Facilitate OpenVMS linker options. 2021-09-29 22:17:31 -04:00
truetype [truetype] Reload context after re-executing `prep`. 2021-10-15 22:37:31 +02:00
type1 [mm] Delay setting blend weight and design position. 2021-10-21 09:55:28 -04:00
type42 Add a comment. 2021-06-15 22:49:21 -04:00
winfonts [bdf, cid, pfr, winfonts] Improve rejection of other font formats. 2021-10-19 22:59:46 +02:00