* src/sfnt/ttcmap.c (tt_cmap12_next): Remove dead code.

Found by clang 8.0's static analyzer and reported by Sender Ghost
<lightside@gmx.com>.
cmakelists-updates
Werner Lemberg 6 years ago
parent 4166c45360
commit 6abce2c2b0
  1. 7
      ChangeLog
  2. 3
      src/sfnt/ttcmap.c

@ -1,3 +1,10 @@
2019-04-23 Werner Lemberg <wl@gnu.org>
* src/sfnt/ttcmap.c (tt_cmap12_next): Remove dead code.
Found by clang 8.0's static analyzer and reported by Sender Ghost
<lightside@gmx.com>.
2019-04-23 Werner Lemberg <wl@gnu.org>
[base] Fix thinko in previous commit.

@ -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;

Loading…
Cancel
Save