[cff] Fix typo.
Reported as https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=9409 * src/cff/cffdrivr.c (cff_get_cid_from_glyph_index): Fix boundary check.
This commit is contained in:
parent
00968d8fd6
commit
578bcf103a
11
ChangeLog
11
ChangeLog
|
@ -1,3 +1,14 @@
|
||||||
|
2018-07-30 Werner Lemberg <wl@gnu.org>
|
||||||
|
|
||||||
|
[cff] Fix typo.
|
||||||
|
|
||||||
|
Reported as
|
||||||
|
|
||||||
|
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=9409
|
||||||
|
|
||||||
|
* src/cff/cffdrivr.c (cff_get_cid_from_glyph_index): Fix boundary
|
||||||
|
check.
|
||||||
|
|
||||||
2018-07-29 Werner Lemberg <wl@gnu.org>
|
2018-07-29 Werner Lemberg <wl@gnu.org>
|
||||||
|
|
||||||
* src/pcf/pcfread.c (pcf_get_encodings): Another thinko.
|
* src/pcf/pcfread.c (pcf_get_encodings): Another thinko.
|
||||||
|
|
|
@ -795,7 +795,7 @@
|
||||||
goto Fail;
|
goto Fail;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( glyph_index > cff->num_glyphs )
|
if ( glyph_index >= cff->num_glyphs )
|
||||||
{
|
{
|
||||||
error = FT_THROW( Invalid_Argument );
|
error = FT_THROW( Invalid_Argument );
|
||||||
goto Fail;
|
goto Fail;
|
||||||
|
|
Loading…
Reference in New Issue