Commit d4f9c249893a146b0c94a152f7674e288d181f95

John Stracke 2019-11-23T11:25:28

[base] Really fix #57194. Apply accidentally missed second part of patch. * src/base/ftgloadr.c (FT_GlyphLoader_CheckPoints): Call `FT_GlyphLoader_CreateExtra'.

diff --git a/ChangeLog b/ChangeLog
index d5ef22e..e5cb51c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2019-11-23  John Stracke  <jstracke@Google.com>
+
+	[base] Really fix #57194.
+
+	Apply accidentally missed second part of patch.
+
+	* src/base/ftgloadr.c (FT_GlyphLoader_CheckPoints): Call
+	`FT_GlyphLoader_CreateExtra'.
+
 2019-11-23  Werner Lemberg  <wl@gnu.org>
 
 	[truetype] Avoid sanitizer warning (#57289).
diff --git a/src/base/ftgloadr.c b/src/base/ftgloadr.c
index c076dcc..4afb682 100644
--- a/src/base/ftgloadr.c
+++ b/src/base/ftgloadr.c
@@ -215,6 +215,10 @@
     FT_UInt      new_max, old_max;
 
 
+    error = FT_GlyphLoader_CreateExtra( loader );
+    if ( error )
+      return error;
+
     /* check points & tags */
     new_max = (FT_UInt)base->n_points + (FT_UInt)current->n_points +
               n_points;
@@ -248,6 +252,10 @@
       loader->max_points = new_max;
     }
 
+    error = FT_GlyphLoader_CreateExtra( loader );
+    if ( error )
+      return error;
+
     /* check contours */
     old_max = loader->max_contours;
     new_max = (FT_UInt)base->n_contours + (FT_UInt)current->n_contours +