freetype/src
Ben Wagner afb4ca0151 [truetype] Reset localpoints when varying cvt.
When iterating over the cvt tuples and reading in the points it is necessary
to set all of `localpoints`, `points`, and `point_count` in all cases.  The
existing code did not reset `localpoints` to `NULL` when there were no
private point numbers.  If the previous tuple did have private point numbers
and set `localpoints` to `ALL_POINTS` this would not be cleared and the
wrong branch would be taken later, leading to possible heap buffer overflow.

* src/truetype/ttgxvar.c (tt_face_vary_cvt): Reset `localpoints` to `NULL`
when it isn't valid.

Fixes: https://crbug.com/1284742
2022-01-06 19:13:00 +01:00
..
autofit * src/autofit/afhints.c (af_glyph_hints_reload): Decrease casting. 2021-09-30 22:59:04 -04:00
base Clang-Tidy warning fixes. 2021-12-18 11:09:15 +01:00
bdf Clang-Tidy warning fixes. 2021-12-18 11:09:15 +01:00
bzip2 Replace boolean allocation macros with MEM ones. 2021-09-14 21:32:43 -04:00
cache Fix warnings for CMake Unity builds. 2021-12-27 07:48:04 +01:00
cff Fix clang++ warnings. 2021-11-16 22:08:47 +01:00
cid Update CHANGES files, other minor whitespace and documentation issues. 2021-11-22 19:58:21 +01:00
dlg [dlg] Define DLG_STATIC explicitly. 2021-11-07 10:20:16 -05:00
gxvalid Update CHANGES files, other minor whitespace and documentation issues. 2021-11-22 19:58:21 +01: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 * src/gxvalid.*, src/otvalid.*: Fix -Wformat warnings. 2021-11-08 11:44:02 +01: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 Update CHANGES files, other minor whitespace and documentation issues. 2021-11-22 19:58:21 +01:00
pshinter [pshinter] Fix C++ compilation. 2021-11-08 09:41:54 +01:00
psnames Replace boolean allocation macros with MEM ones. 2021-09-14 21:32:43 -04:00
raster Avoid undefined left-shifts. 2021-11-20 07:58:31 +01:00
sdf Clang-Tidy warning fixes. 2021-12-18 11:09:15 +01:00
sfnt [sfnt] Avoid undefined shifts in COLR v1 paint parsing 2021-11-13 06:48:23 +00:00
smooth Fix warnings for CMake Unity builds. 2021-12-27 07:48:04 +01:00
tools * src/tools/apinames.c: Facilitate OpenVMS linker options. 2021-09-29 22:17:31 -04:00
truetype [truetype] Reset localpoints when varying cvt. 2022-01-06 19:13:00 +01:00
type1 Fix clang warnings. 2021-11-14 11:02:54 +01: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