freetype2/src
Werner Lemberg 730b6d7468 [sfnt] Improve handling of invalid SFNT table entries (#45987).
This patch fixes weaknesses in function `tt_face_load_font_dir'.

- It incorrectly assumed that valid tables are always at the
  beginning.  As a consequence, some valid tables after invalid
  entries (which are ignored) were never seen.

- Duplicate table entries (this is, having the same tag) were not
  rejected.

- The number of valid tables was sometimes too large, leading to
  access of invalid tables.

* src/sfnt/ttload.c (check_table_dir): Add argument to return number
of valid tables.
Add another tracing message.
(tt_face_load_font_dir): Only allocate table array for valid
entries as returned by `check_table_dir'.
Reject duplicate tables and adjust number of valid tables
accordingly.
2015-09-19 12:41:12 +02:00
..
autofit [autofit] Missing piece. 2015-09-04 22:28:13 -04:00
base Minor fixes for some clang warnings. 2015-09-16 18:05:43 +02:00
bdf [truetype] Introduce named instance access to GX fonts. 2015-08-13 15:22:17 +02:00
bzip2 Minor copyright and e-mail address issues. 2015-03-11 08:48:15 +01:00
cache Make Jam support work again. 2015-06-21 19:12:12 +02:00
cff [truetype] Introduce named instance access to GX fonts. 2015-08-13 15:22:17 +02:00
cid [truetype] Introduce named instance access to GX fonts. 2015-08-13 15:22:17 +02:00
gxvalid Make Jam support work again. 2015-06-21 19:12:12 +02:00
gzip [gzip] Fix access of small compressed files (#45937). 2015-09-13 08:05:50 +02:00
lzw Minor copyright and e-mail address issues. 2015-03-11 08:48:15 +01:00
otvalid Make Jam support work again. 2015-06-21 19:12:12 +02:00
pcf [pcf] Improve `FT_ABS' fix from 2015-09-17 (#45999). 2015-09-19 07:58:03 +02:00
pfr [truetype] Introduce named instance access to GX fonts. 2015-08-13 15:22:17 +02:00
psaux [psaux] Fix memory leak (#45986). 2015-09-17 17:56:53 +02:00
pshinter [base] Fix `ft_corner_orientation'. 2015-08-03 23:26:13 -04:00
psnames Better support of user-supplied C++ namespaces. 2015-07-09 15:10:31 +02:00
raster [raster,smooth] Microoptimizations. 2015-09-04 23:14:46 -04:00
sfnt [sfnt] Improve handling of invalid SFNT table entries (#45987). 2015-09-19 12:41:12 +02:00
smooth * src/smooth/ftgrays.c (gray_render_line): Simplify clipping. 2015-09-07 13:47:36 -04:00
tools [docmaker] Allow `-' in bold and italic markup. 2015-09-10 07:44:11 +02:00
truetype Minor fixes for some clang warnings. 2015-09-16 18:05:43 +02:00
type1 [type1, type42] Fix memory leaks (#45966). 2015-09-15 08:52:36 +02:00
type42 [type42] Fix memory leak (#45989). 2015-09-17 19:30:26 +02:00
winfonts [winfonts] Check alignment shift count for resource data (#45938). 2015-09-13 09:21:52 +02:00
Jamfile Make Jam support work again. 2015-06-21 19:12:12 +02:00