[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[freetype2] anuj-distance-field ee9b8e8: * src/sdf/ftsdfrend.c (ft_bsdf_
From: |
Anuj Verma |
Subject: |
[freetype2] anuj-distance-field ee9b8e8: * src/sdf/ftsdfrend.c (ft_bsdf_render): Initialize variable. |
Date: |
Mon, 3 Aug 2020 06:49:31 -0400 (EDT) |
branch: anuj-distance-field
commit ee9b8e8cc053bf7c90992aba5bd93a741e8e0281
Author: Anuj Verma <anujv@iitbhilai.ac.in>
Commit: Anuj Verma <anujv@iitbhilai.ac.in>
* src/sdf/ftsdfrend.c (ft_bsdf_render): Initialize variable.
Initialize the target bitmap so as to avoid crashes due
to uninitialized memory.
---
[GSoC]ChangeLog | 6 ++++++
src/sdf/ftsdfrend.c | 5 ++++-
2 files changed, 10 insertions(+), 1 deletion(-)
diff --git a/[GSoC]ChangeLog b/[GSoC]ChangeLog
index b67ea82..22014eb 100644
--- a/[GSoC]ChangeLog
+++ b/[GSoC]ChangeLog
@@ -1,5 +1,11 @@
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.
* src/sdf/ftbsdf.c (bsdf_raster_render): Release the
diff --git a/src/sdf/ftsdfrend.c b/src/sdf/ftsdfrend.c
index f2a34b1..0de977a 100644
--- a/src/sdf/ftsdfrend.c
+++ b/src/sdf/ftsdfrend.c
@@ -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;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [freetype2] anuj-distance-field ee9b8e8: * src/sdf/ftsdfrend.c (ft_bsdf_render): Initialize variable.,
Anuj Verma <=