freetype-commit
[Top][All Lists]
Advanced

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

[freetype2-demos] master f6e8ecae: * graph/gblblit.c (grBlitGlyphToSurfa


From: Werner Lemberg
Subject: [freetype2-demos] master f6e8ecae: * graph/gblblit.c (grBlitGlyphToSurface): Validate the source buffer.
Date: Thu, 4 Apr 2024 23:34:11 -0400 (EDT)

branch: master
commit f6e8ecaee2be284691d6f7baf411bf5065ef9e5e
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Commit: Alexei Podtelezhnikov <apodtele@gmail.com>

    * graph/gblblit.c (grBlitGlyphToSurface): Validate the source buffer.
    
    Thanks to Marc Schönefeld for the report.
---
 graph/gblblit.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/graph/gblblit.c b/graph/gblblit.c
index 19dbaf74..4cfa71ce 100644
--- a/graph/gblblit.c
+++ b/graph/gblblit.c
@@ -475,7 +475,7 @@ grBlitGlyphToSurface( grSurface*  surface,
 
 
   /* check arguments */
-  if ( !surface || !glyph )
+  if ( !surface || !glyph || !glyph->buffer )
   {
     grError = gr_err_bad_argument;
     return -1;



reply via email to

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