freetype-commit
[Top][All Lists]
Advanced

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

[Git][freetype/freetype][gsoc-anurag-2023] prevent segfault


From: Anurag Thakur (@AdbhutDev)
Subject: [Git][freetype/freetype][gsoc-anurag-2023] prevent segfault
Date: Sat, 30 Sep 2023 08:54:53 +0000

Anurag Thakur pushed to branch gsoc-anurag-2023 at FreeType / FreeType

Commits:

  • c107e5a7
    by Anurag Thakur at 2023-09-30T14:24:24+05:30
    prevent segfault
    

1 changed file:

Changes:

  • src/base/ftobjs.c
    ... ... @@ -3140,7 +3140,7 @@ int conic_to2(FT_GlyphSlot* slot, FT_Vector *control, FT_Vector *from, FT_Vector
    3140 3140
           face->garray = (FT_GlyphSlot*)malloc(
    
    3141 3141
               face->driver->clazz->slot_object_size * face->num_glyphs );
    
    3142 3142
           //error           = FT_Set_Char_Size( face, 0, 160 * 64, 300, 300 );
    
    3143
    -      error           = FT_Set_Pixel_Sizes( face, 0, 500);
    
    3143
    +      error           = FT_Set_Pixel_Sizes( face, 0, 320);
    
    3144 3144
           // int glyph_index = FT_Get_Char_Index( face, 'A' );
    
    3145 3145
           // error           = FT_Load_Glyph( face, glyph_index, FT_LOAD_NO_HINTING );
    
    3146 3146
     
    
    ... ... @@ -3154,7 +3154,7 @@ int conic_to2(FT_GlyphSlot* slot, FT_Vector *control, FT_Vector *from, FT_Vector
    3154 3154
             face->garray[gindex]->face = face;
    
    3155 3155
             face->garray[gindex]->glyph_index = gindex;
    
    3156 3156
             ft_glyphslot_init(face->garray[gindex]);
    
    3157
    -        face->garray[gindex]->next = face->garray[gindex];
    
    3157
    +        face->garray[gindex]->next = NULL;
    
    3158 3158
             *face->glyph = *face->garray[gindex];
    
    3159 3159
     
    
    3160 3160
             FT_Load_Glyph(face, gindex, FT_LOAD_NO_HINTING);
    


  • reply via email to

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