forked from minhngoc25a/freetype2
* 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:
parent
95846825f6
commit
ee9b8e8cc0
@ -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.
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user