From e02a40a4f8754774c8dccc01aeb0f07ea58e81c7 Mon Sep 17 00:00:00 2001 From: Werner Lemberg Date: Mon, 8 May 2023 20:12:26 +0200 Subject: [PATCH] * 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 )