freetype2/src
Armin Hasitzka 6986ddac1e [cff] Fix boundary checks.
642bc7590c introduced dynamically
allocated memory when parsing CFF files with the "old" engine.  Bounds
checks have never been updated, however, leading to pointless
comparisons of pointers in some cases.  This commit presents a
solution for bounds checks in the CFF module with an extended logic
for the "old" engine while staying as concise as possible for the
"new" one.

* src/cff/cffparse.h: Introduce the struct `CFF_T2_StringRec' and
the additional field `t2_strings' within `CFF_ParserRec'.

* src/cff/cffparse.c (cff_parser_within_limits): Move all boundary
checks into this new function and update the rest of `cffparse.c' to
use it.

Reported as

  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=12137
2019-03-31 11:08:49 +01:00
..
autofit [autofit] Fix Mongolian blue zone characters. 2019-03-20 07:04:06 +01:00
base * Version 2.10.0 released. 2019-03-15 07:56:49 +01:00
bdf Update all copyright notices. 2019-02-23 10:07:09 +01:00
bzip2 Update all copyright notices. 2019-02-23 10:07:09 +01:00
cache Update all copyright notices. 2019-02-23 10:07:09 +01:00
cff [cff] Fix boundary checks. 2019-03-31 11:08:49 +01:00
cid Fix invalid function pointer casts. 2019-03-07 09:43:05 +01:00
gxvalid Update all copyright notices. 2019-02-23 10:07:09 +01:00
gzip Update all copyright notices. 2019-02-23 10:07:09 +01:00
lzw Update all copyright notices. 2019-02-23 10:07:09 +01:00
otvalid Update all copyright notices. 2019-02-23 10:07:09 +01:00
pcf Update all copyright notices. 2019-02-23 10:07:09 +01:00
pfr Update all copyright notices. 2019-02-23 10:07:09 +01:00
psaux Fix use of uninitialized memory. 2019-03-05 11:28:19 +01:00
pshinter Update all copyright notices. 2019-02-23 10:07:09 +01:00
psnames Update all copyright notices. 2019-02-23 10:07:09 +01:00
raster Update all copyright notices. 2019-02-23 10:07:09 +01:00
sfnt Update all copyright notices. 2019-02-23 10:07:09 +01:00
smooth Update all copyright notices. 2019-02-23 10:07:09 +01:00
tools Update all copyright notices. 2019-02-23 10:07:09 +01:00
truetype Update all copyright notices. 2019-02-23 10:07:09 +01:00
type1 Update all copyright notices. 2019-02-23 10:07:09 +01:00
type42 Update all copyright notices. 2019-02-23 10:07:09 +01:00
winfonts Update all copyright notices. 2019-02-23 10:07:09 +01:00
Jamfile Update all copyright notices. 2019-02-23 10:07:09 +01:00