ref: 31f8055390361773caed6bf8c087a88b64222bb5
parent: 9db55ad1af963842202d21736ac82b36fc4ebf9a
author: Werner Lemberg <[email protected]>
date: Tue Jan 31 03:10:04 EST 2017
[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'.
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2017-01-31 Werner Lemberg <[email protected]>
+
+ [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 <[email protected]>
s/GB2312/PRC/.
--- a/src/autofit/afcjk.c
+++ b/src/autofit/afcjk.c
@@ -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;
--- a/src/autofit/aflatin.c
+++ b/src/autofit/aflatin.c
@@ -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;