freetype-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[freetype2] gsoc-anurag-2023 c107e5a76: prevent segfault


From: Werner Lemberg
Subject: [freetype2] gsoc-anurag-2023 c107e5a76: prevent segfault
Date: Sat, 30 Sep 2023 04:55:00 -0400 (EDT)

branch: gsoc-anurag-2023
commit c107e5a76e83b41eb88d2ce0232d9a76ab616a5b
Author: Anurag Thakur <anurag105csec21@bpitindia.edu.in>
Commit: Anurag Thakur <anurag105csec21@bpitindia.edu.in>

    prevent segfault
---
 src/base/ftobjs.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/base/ftobjs.c b/src/base/ftobjs.c
index c5d2e5df3..d97b4585f 100644
--- a/src/base/ftobjs.c
+++ b/src/base/ftobjs.c
@@ -3140,7 +3140,7 @@ int conic_to2(FT_GlyphSlot* slot, FT_Vector *control, 
FT_Vector *from, FT_Vector
       face->garray = (FT_GlyphSlot*)malloc(
           face->driver->clazz->slot_object_size * face->num_glyphs );
       //error           = FT_Set_Char_Size( face, 0, 160 * 64, 300, 300 );
-      error           = FT_Set_Pixel_Sizes( face, 0, 500);
+      error           = FT_Set_Pixel_Sizes( face, 0, 320);
       // int glyph_index = FT_Get_Char_Index( face, 'A' );
       // error           = FT_Load_Glyph( face, glyph_index, 
FT_LOAD_NO_HINTING );
 
@@ -3154,7 +3154,7 @@ int conic_to2(FT_GlyphSlot* slot, FT_Vector *control, 
FT_Vector *from, FT_Vector
         face->garray[gindex]->face = face;
         face->garray[gindex]->glyph_index = gindex;
         ft_glyphslot_init(face->garray[gindex]);
-        face->garray[gindex]->next = face->garray[gindex];
+        face->garray[gindex]->next = NULL;
         *face->glyph = *face->garray[gindex];
 
         FT_Load_Glyph(face, gindex, FT_LOAD_NO_HINTING);



reply via email to

[Prev in Thread] Current Thread [Next in Thread]