Version 6.4.0.0.beta1, tag libreoffice-6.4.0.0.beta1
[LibreOffice.git] / external / harfbuzz / ubsan.patch
bloba9d1b72ef1a2023a26de616c5b48bf9a3be7fdbd
1 --- src/hb-ot-layout-gsubgpos.hh
2 +++ src/hb-ot-layout-gsubgpos.hh
3 @@ -387,7 +387,7 @@
4 skip == matcher_t::SKIP_NO))
6 num_items--;
7 - match_glyph_data++;
8 + if (match_glyph_data != nullptr) match_glyph_data++;
9 return true;
12 @@ -414,7 +414,7 @@
13 skip == matcher_t::SKIP_NO))
15 num_items--;
16 - match_glyph_data++;
17 + if (match_glyph_data != nullptr) match_glyph_data++;
18 return true;