shithub: freetype+ttf2subf

Download patch

ref: d949a3db5809e9ad258a5933a606d1ae9ff0c25a
parent: b37b799c560771637979a89e22a0bcee3aa236a8
author: Werner Lemberg <[email protected]>
date: Tue Nov 29 07:09:56 EST 2016

[smooth] Avoid conditional jump on uninitialized value (#49711).

* src/smooth/ftgrays.c (gray_raster_render): Initialize `worker'.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2016-11-29  Werner Lemberg  <[email protected]>
+
+	[smooth] Avoid conditional jump on uninitialized value (#49711).
+
+	* src/smooth/ftgrays.c (gray_raster_render): Initialize `worker'.
+
 2016-11-27  Nikolaus Waxweiler  <[email protected]>
 
 	[autofit] Code shuffling.
--- a/src/smooth/ftgrays.c
+++ b/src/smooth/ftgrays.c
@@ -1840,8 +1840,8 @@
   gray_raster_render( FT_Raster                raster,
                       const FT_Raster_Params*  params )
   {
-    const FT_Outline*  outline     = (const FT_Outline*)params->source;
-    const FT_Bitmap*   target_map  = params->target;
+    const FT_Outline*  outline    = (const FT_Outline*)params->source;
+    const FT_Bitmap*   target_map = params->target;
     FT_BBox            cbox, clip;
 
 #ifndef FT_STATIC_RASTER
@@ -1869,6 +1869,8 @@
     if ( outline->n_points !=
            outline->contours[outline->n_contours - 1] + 1 )
       return FT_THROW( Invalid_Outline );
+
+    FT_ZERO( worker );
 
     ras.outline = *outline;