[glyf] Another bounds check

Very unlikely that is needed but technically possible.
This commit is contained in:
Behdad Esfahbod 2022-06-27 12:56:21 -06:00
parent 2e9dbdcbbe
commit b30a3dcba3
1 changed files with 1 additions and 0 deletions

View File

@ -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;)