diff --git a/src/cid/cidgload.c b/src/cid/cidgload.c index 59c924c65..2c0f0ec06 100644 --- a/src/cid/cidgload.c +++ b/src/cid/cidgload.c @@ -116,7 +116,7 @@ FT_FRAME_EXIT(); if ( fd_select >= (FT_ULong)cid->num_dicts || - off2 >= stream->size || + off2 > stream->size || off1 > off2 ) { FT_TRACE0(( "cid_load_glyph: invalid glyph stream offsets\n" ));