[sfnt] Fix Savannah bug #43392.

* src/sfnt/ttsbit.c (tt_sbit_decoder_load_metrics): Don't let
vertical metrics uninitialized.
This commit is contained in:
Werner Lemberg 2014-10-12 08:31:32 +02:00
parent 673a28ef93
commit 1ca5fa15b0
2 changed files with 14 additions and 0 deletions

View File

@ -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.

View File

@ -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;