[sfnt] Fix Savannah bug #43392.

* src/sfnt/ttsbit.c (tt_sbit_decoder_load_metrics): Don't let
vertical metrics uninitialized.
2.6.5
Werner Lemberg 10 years ago
parent 673a28ef93
commit 1ca5fa15b0
  1. 7
      ChangeLog
  2. 7
      src/sfnt/ttsbit.c

@ -1,3 +1,10 @@
2014-10-12 Werner Lemberg <wl@gnu.org>
[sfnt] Fix Savannah bug #43392.
* src/sfnt/ttsbit.c (tt_sbit_decoder_load_metrics): Don't let
vertical metrics uninitialized.
2014-10-11 Alexei Podtelezhnikov <apodtele@gmail.com>
[base] Small bbox correction.

@ -505,6 +505,13 @@
p += 3;
}
else
{
/* avoid uninitialized data in case there is no vertical info -- */
metrics->vertBearingX = 0;
metrics->vertBearingY = 0;
metrics->vertAdvance = metrics->width;
}
decoder->metrics_loaded = 1;
*pp = p;

Loading…
Cancel
Save