[glyf] Another bounds check

Very unlikely that is needed but technically possible.
pull/3685/head
Behdad Esfahbod 3 years ago
parent 2e9dbdcbbe
commit b30a3dcba3
  1. 1
      src/OT/glyf/SimpleGlyph.hh

@ -173,6 +173,7 @@ struct SimpleGlyph
if (unlikely ((const char *) p < bytes.arrayZ)) return false; /* Unlikely overflow */
const HBUINT8 *end = (const HBUINT8 *) (bytes.arrayZ + bytes.length);
if (unlikely (p >= end)) return false;
/* Read flags */
for (unsigned int i = 0; i < num_points;)

Loading…
Cancel
Save