* src/cff/cffload.c (cff_load_private_dict): Always init `blend'.
Reported as https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=295
This commit is contained in:
parent
df2cf43e94
commit
50ff6c1eab
|
@ -1,3 +1,11 @@
|
||||||
|
2016-12-17 Werner Lemberg <wl@gnu.org>
|
||||||
|
|
||||||
|
* src/cff/cffload.c (cff_load_private_dict): Always init `blend'.
|
||||||
|
|
||||||
|
Reported as
|
||||||
|
|
||||||
|
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=295
|
||||||
|
|
||||||
2016-12-16 Werner Lemberg <wl@gnu.org>
|
2016-12-16 Werner Lemberg <wl@gnu.org>
|
||||||
|
|
||||||
[truetype] Fix `cvar' sanity test.
|
[truetype] Fix `cvar' sanity test.
|
||||||
|
|
|
@ -1843,13 +1843,14 @@
|
||||||
FT_UInt stackSize;
|
FT_UInt stackSize;
|
||||||
|
|
||||||
|
|
||||||
if ( !top->private_offset || !top->private_size )
|
/* store handle needed to access memory, vstore for blend; */
|
||||||
goto Exit2; /* no private DICT, do nothing */
|
/* we need this for clean-up even if there is no private DICT */
|
||||||
|
|
||||||
/* store handle needed to access memory, vstore for blend */
|
|
||||||
subfont->blend.font = font;
|
subfont->blend.font = font;
|
||||||
subfont->blend.usedBV = FALSE; /* clear state */
|
subfont->blend.usedBV = FALSE; /* clear state */
|
||||||
|
|
||||||
|
if ( !top->private_offset || !top->private_size )
|
||||||
|
goto Exit2; /* no private DICT, do nothing */
|
||||||
|
|
||||||
/* set defaults */
|
/* set defaults */
|
||||||
FT_ZERO( priv );
|
FT_ZERO( priv );
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue