[glyf] Another bounds check
Very unlikely that is needed but technically possible.
This commit is contained in:
parent
2e9dbdcbbe
commit
b30a3dcba3
|
@ -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…
Reference in New Issue