Make sure feature values don't leak out of their mask

This commit is contained in:
Behdad Esfahbod 2010-10-13 15:36:38 -04:00
parent 852912fc2d
commit 5c1c8c9c50
1 changed files with 1 additions and 0 deletions

View File

@ -476,6 +476,7 @@ _hb_buffer_add_masks (hb_buffer_t *buffer,
unsigned int cluster_end)
{
hb_mask_t not_mask = ~mask;
value &= mask;
if (cluster_start == 0 && cluster_end == (unsigned int)-1) {
unsigned int count = buffer->len;