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

* src/smooth/ftgrays.c (gray_raster_render): Initialize `worker'.
This commit is contained in:
Werner Lemberg 2016-11-29 12:09:56 +01:00
parent b37b799c56
commit d949a3db58
2 changed files with 10 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2016-11-29 Werner Lemberg <wl@gnu.org>
[smooth] Avoid conditional jump on uninitialized value (#49711).
* src/smooth/ftgrays.c (gray_raster_render): Initialize `worker'.
2016-11-27 Nikolaus Waxweiler <madigens@gmail.com>
[autofit] Code shuffling.

View File

@ -1840,8 +1840,8 @@ typedef ptrdiff_t FT_PtrDist;
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
@ -1870,6 +1870,8 @@ typedef ptrdiff_t FT_PtrDist;
outline->contours[outline->n_contours - 1] + 1 )
return FT_THROW( Invalid_Outline );
FT_ZERO( worker );
ras.outline = *outline;
if ( params->flags & FT_RASTER_FLAG_DIRECT )