Fix segfault with Arabic combining marks

This commit is contained in:
Behdad Esfahbod 2010-10-27 10:40:39 -04:00
parent 12b2d09a87
commit aefdb64689
1 changed files with 3 additions and 1 deletions

View File

@ -689,8 +689,10 @@ _hb_ot_shape_complex_setup_masks_arabic (hb_ot_shape_context_t *c)
unsigned int this_type = get_joining_type (c->buffer->info[i].codepoint, c->buffer->unicode->v.get_general_category (c->buffer->info[i].codepoint)); unsigned int this_type = get_joining_type (c->buffer->info[i].codepoint, c->buffer->unicode->v.get_general_category (c->buffer->info[i].codepoint));
if (unlikely (this_type == JOINING_TYPE_T)) if (unlikely (this_type == JOINING_TYPE_T)) {
c->buffer->info[i].gproperty = NONE;
continue; continue;
}
const arabic_state_table_entry *entry = &arabic_state_table[state][this_type]; const arabic_state_table_entry *entry = &arabic_state_table[state][this_type];