mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-25 17:01:17 +01:00
[post] Fix bound checking
This commit is contained in:
1 parent
7ec694ddf2
commit
64f0becd89
1 file changed
+1
-1
@@ -124,7 +124,7 @@ struct post
|
||||
pool = &StructAfter<uint8_t> (v2.glyphNameIndex);
|
||||
|
||||
const uint8_t *end = (uint8_t *) table + table_length;
|
||||
for (const uint8_t *data = pool; data < end && data + *data <= end; data += 1 + *data)
|
||||
for (const uint8_t *data = pool; data < end && data + *data < end; data += 1 + *data)
|
||||
index_to_offset.push (data - pool);
|
||||
}
|
||||
inline void fini (void)
|
||||
|
||||
Reference in new issue
Block a user