* src/type1/t1afm.c (t1_get_index): Restore `strlen` call.

This reverts commit 8ed6d97446
and fixes
   https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=62246
This commit is contained in:
Alexei Podtelezhnikov 2023-09-10 22:34:17 -04:00
parent 446720a29e
commit 17db21f3fc
1 changed files with 2 additions and 2 deletions

View File

@ -69,8 +69,8 @@
if ( gname && gname[0] == name[0] &&
ft_strncmp( gname, name, len ) == 0 &&
gname[len] == 0 )
ft_strlen( gname ) == len &&
ft_strncmp( gname, name, len ) == 0 )
return n;
}