From 3cfd51233c8b88f53097ebcef6bbb05e360d12b7 Mon Sep 17 00:00:00 2001 From: Dave Arnold Date: Wed, 21 Oct 2015 14:07:25 +0200 Subject: [PATCH] [cff] Fix limit in assert for max hints. * src/cff/cf2interp.c (cf2_hintmask_setAll): Allow mask equal to the limit (96 bits). --- ChangeLog | 7 +++++++ src/cff/cf2intrp.c | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 6af1970db..5d25e0ff7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2015-10-21 Dave Arnold + + [cff] Fix limit in assert for max hints. + + * src/cff/cf2interp.c (cf2_hintmask_setAll): Allow mask equal to the + limit (96 bits). + 2015-10-21 Dave Arnold [cff] Remove an assert (#46107). diff --git a/src/cff/cf2intrp.c b/src/cff/cf2intrp.c index ff3fa9aaa..b49b96f00 100644 --- a/src/cff/cf2intrp.c +++ b/src/cff/cf2intrp.c @@ -184,7 +184,7 @@ return; FT_ASSERT( hintmask->byteCount > 0 ); - FT_ASSERT( hintmask->byteCount < + FT_ASSERT( hintmask->byteCount <= sizeof ( hintmask->mask ) / sizeof ( hintmask->mask[0] ) ); /* set mask to all ones */