summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWerner Lemberg <wl@gnu.org>2023-05-08 20:12:26 +0200
committerWerner Lemberg <wl@gnu.org>2023-05-08 20:12:26 +0200
commite02a40a4f8754774c8dccc01aeb0f07ea58e81c7 (patch)
tree1a79ae3cffbd006f7041e7bd085cb38ad90b68b5
parent5edd6d52b1b610c9f4445f0ca941a624d2ad56c3 (diff)
downloadfreetype2-e02a40a4f8754774c8dccc01aeb0f07ea58e81c7.tar.gz
* 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
-rw-r--r--src/cff/cffdrivr.c2
1 files changed, 1 insertions, 1 deletions
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 )