[myanmar] Fix unsafe usage of FLAG_SAFE()

The commit f559c63307 caused
"undefined-shift" errors in Myanmar shaper as we changed the
numeric value of type D from 19 to 32 there, making the
"FLAG_SAFE (info.myanmar_category())" wrong.

Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=3546
pull/568/head
Behdad Esfahbod 7 years ago
parent d6f612fac8
commit 7c561dacc3
  1. 2
      src/hb-ot-shape-complex-myanmar.cc

@ -154,7 +154,7 @@ is_one_of (const hb_glyph_info_t &info, unsigned int flags)
{ {
/* If it ligated, all bets are off. */ /* If it ligated, all bets are off. */
if (_hb_glyph_info_ligated (&info)) return false; if (_hb_glyph_info_ligated (&info)) return false;
return !!(FLAG_SAFE (info.myanmar_category()) & flags); return !!(FLAG_UNSAFE (info.myanmar_category()) & flags);
} }
static inline bool static inline bool

Loading…
Cancel
Save