From 6abce2c2b04a14bd711d5d0fee3ba23e9612a747 Mon Sep 17 00:00:00 2001 From: Werner Lemberg Date: Tue, 23 Apr 2019 06:52:07 +0200 Subject: [PATCH] * src/sfnt/ttcmap.c (tt_cmap12_next): Remove dead code. Found by clang 8.0's static analyzer and reported by Sender Ghost . --- ChangeLog | 7 +++++++ src/sfnt/ttcmap.c | 3 --- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 92a2556fb..7919b5f52 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2019-04-23 Werner Lemberg + + * src/sfnt/ttcmap.c (tt_cmap12_next): Remove dead code. + + Found by clang 8.0's static analyzer and reported by Sender Ghost + . + 2019-04-23 Werner Lemberg [base] Fix thinko in previous commit. diff --git a/src/sfnt/ttcmap.c b/src/sfnt/ttcmap.c index 32ad301ff..683f3b181 100644 --- a/src/sfnt/ttcmap.c +++ b/src/sfnt/ttcmap.c @@ -2368,10 +2368,7 @@ /* if `gindex' is invalid, the remaining values */ /* in this group are invalid, too */ if ( gindex >= (FT_UInt)face->num_glyphs ) - { - gindex = 0; continue; - } cmap->cur_charcode = char_code; cmap->cur_gindex = gindex;