* src/truetype/ttinterp.c (Ins_GETVARIATION): Avoid NULL reference.

Reported as

  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=5736
GSoC-2017-kushal
Werner Lemberg 7 years ago
parent f438e06972
commit 29c759284e
  1. 8
      ChangeLog
  2. 12
      src/truetype/ttinterp.c

@ -1,3 +1,11 @@
2018-01-27 Werner Lemberg <wl@gnu.org>
* src/truetype/ttinterp.c (Ins_GETVARIATION): Avoid NULL reference.
Reported as
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=5736
2018-01-27 Werner Lemberg <wl@gnu.org>
* src/truetype/ttgxvar.c (tt_set_mm_blend): Minor.

@ -7532,8 +7532,16 @@
return;
}
for ( i = 0; i < num_axes; i++ )
args[i] = coords[i] >> 2; /* convert 16.16 to 2.14 format */
if ( coords )
{
for ( i = 0; i < num_axes; i++ )
args[i] = coords[i] >> 2; /* convert 16.16 to 2.14 format */
}
else
{
for ( i = 0; i < num_axes; i++ )
args[i] = 0;
}
}

Loading…
Cancel
Save