[normalize] Add buffer success check before ->next_glyph()
Speculative fix for: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=27843
This commit is contained in:
parent
505b3fc6cf
commit
bcd10bf274
|
@ -419,6 +419,7 @@ _hb_ot_shape_normalize (const hb_ot_shape_plan_t *plan,
|
||||||
/* Third round, recompose */
|
/* Third round, recompose */
|
||||||
|
|
||||||
if (!all_simple &&
|
if (!all_simple &&
|
||||||
|
buffer->successful &&
|
||||||
(mode == HB_OT_SHAPE_NORMALIZATION_MODE_COMPOSED_DIACRITICS ||
|
(mode == HB_OT_SHAPE_NORMALIZATION_MODE_COMPOSED_DIACRITICS ||
|
||||||
mode == HB_OT_SHAPE_NORMALIZATION_MODE_COMPOSED_DIACRITICS_NO_SHORT_CIRCUIT))
|
mode == HB_OT_SHAPE_NORMALIZATION_MODE_COMPOSED_DIACRITICS_NO_SHORT_CIRCUIT))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue