freetype-commit
[Top][All Lists]
Advanced

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

[Git][freetype/freetype-demos][master] * graph/gblblit.c (grBlitGlyphToS


From: Alexei Podtelezhnikov (@apodtele)
Subject: [Git][freetype/freetype-demos][master] * graph/gblblit.c (grBlitGlyphToSurface): Validate the source buffer.
Date: Fri, 05 Apr 2024 03:34:03 +0000

Alexei Podtelezhnikov pushed to branch master at FreeType / FreeType Demo Programs

Commits:

  • f6e8ecae
    by Alexei Podtelezhnikov (Алексей Подтележников) at 2024-04-04T23:30:17-04:00
    * graph/gblblit.c (grBlitGlyphToSurface): Validate the source buffer.
    
    Thanks to Marc Schönefeld for the report.
    

1 changed file:

Changes:

  • graph/gblblit.c
    ... ... @@ -475,7 +475,7 @@ grBlitGlyphToSurface( grSurface* surface,
    475 475
     
    
    476 476
     
    
    477 477
       /* check arguments */
    
    478
    -  if ( !surface || !glyph )
    
    478
    +  if ( !surface || !glyph || !glyph->buffer )
    
    479 479
       {
    
    480 480
         grError = gr_err_bad_argument;
    
    481 481
         return -1;
    


  • reply via email to

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