mirror of https://github.com/freetype/freetype
[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:
parent
673a28ef93
commit
1ca5fa15b0
|
@ -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…
Reference in New Issue