diff --git a/src/hb-ot-cff-common.hh b/src/hb-ot-cff-common.hh index 8bd1319ee..eca38cbdc 100644 --- a/src/hb-ot-cff-common.hh +++ b/src/hb-ot-cff-common.hh @@ -201,7 +201,7 @@ struct CFFIndex inline unsigned int length_at (unsigned int index) const { - if (likely ((offset_at (index + 1) >= offset_at (index)) && + if (likely ((offset_at (index + 1) >= offset_at (index)) && (offset_at (index + 1) <= offset_at (count)))) return offset_at (index + 1) - offset_at (index); else