freetype-commit
[Top][All Lists]
Advanced

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

[freetype2] master e02a40a4f: * src/cff/cffdrivr.c (cff_glyph_load): Fix


From: Werner Lemberg
Subject: [freetype2] master e02a40a4f: * src/cff/cffdrivr.c (cff_glyph_load): Fix guard for `size`.
Date: Mon, 8 May 2023 14:16:08 -0400 (EDT)

branch: master
commit e02a40a4f8754774c8dccc01aeb0f07ea58e81c7
Author: Werner Lemberg <wl@gnu.org>
Commit: Werner Lemberg <wl@gnu.org>

    * src/cff/cffdrivr.c (cff_glyph_load): Fix guard for `size`.
    
    This was forgotten to change in commit 2b54eba36b (in May 2004).
    
    Reported as
    
      https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=58739
---
 src/cff/cffdrivr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/cff/cffdrivr.c b/src/cff/cffdrivr.c
index 3d08f8d5b..7ee26a9f4 100644
--- a/src/cff/cffdrivr.c
+++ b/src/cff/cffdrivr.c
@@ -181,7 +181,7 @@
     if ( load_flags & FT_LOAD_NO_SCALE )
       size = NULL;
 
-    if ( cffsize )
+    if ( size )
     {
       /* these two objects must have the same parent */
       if ( size->face != slot->face )



reply via email to

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