* src/sdf/ftsdfrend.c (ft_bsdf_render): Initialize variable.

Initialize the target bitmap so as to avoid crashes due
to uninitialized memory.
This commit is contained in:
Anuj Verma 2020-08-03 16:19:21 +05:30
parent 95846825f6
commit ee9b8e8cc0
2 changed files with 10 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2020-08-3 Anuj Verma <anujv@iitbhilai.ac.in>
* src/sdf/ftsdfrend.c (ft_bsdf_render): Initialize
the target bitmap so as to avoid crashes due to
uninitialized memory.
2020-08-3 Anuj Verma <anujv@iitbhilai.ac.in>
[sdf -> bsdf] Fixed memory leak.

View File

@ -421,7 +421,10 @@
SDF_Raster_Params params;
SDF_Renderer sdf_module = SDF_RENDERER( module );
/* initialize the bitmap in case any error occurs */
FT_Bitmap_Init( &target );
render = &sdf_module->root;
memory = render->root.memory;