[autofit] Avoid uninitialized jumps (#50191).

* src/autofit/afcjk.c (af_cjk_metrics_check_digits),
src/autofit/aflatin.c (af_latin_metrics_check_digits): Initialize
`advance'.
Harmony
Werner Lemberg 8 years ago
parent 9db55ad1af
commit 31f8055390
  1. 8
      ChangeLog
  2. 2
      src/autofit/afcjk.c
  3. 2
      src/autofit/aflatin.c

@ -1,3 +1,11 @@
2017-01-31 Werner Lemberg <wl@gnu.org>
[autofit] Avoid uninitialized jumps (#50191).
* src/autofit/afcjk.c (af_cjk_metrics_check_digits),
src/autofit/aflatin.c (af_latin_metrics_check_digits): Initialize
`advance'.
2017-01-27 Werner Lemberg <wl@gnu.org>
s/GB2312/PRC/.

@ -563,7 +563,7 @@
FT_Face face )
{
FT_Bool started = 0, same_width = 1;
FT_Fixed advance, old_advance = 0;
FT_Fixed advance = 0, old_advance = 0;
void* shaper_buf;

@ -941,7 +941,7 @@
FT_Face face )
{
FT_Bool started = 0, same_width = 1;
FT_Fixed advance, old_advance = 0;
FT_Fixed advance = 0, old_advance = 0;
void* shaper_buf;

Loading…
Cancel
Save