mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-21 06:51:01 +01:00
[hvgl] Add table version check
This commit is contained in:
1 parent
d4b29817c8
commit
9579cee8b0
1 file changed
+4
@@ -596,6 +596,10 @@ struct hvgl
|
||||
if (unlikely (!c->check_struct (this))) return_trace (false);
|
||||
hb_barrier ();
|
||||
|
||||
if (unlikely (versionMajor != 3 ||
|
||||
(versionMajor == 3 && versionMinor < 1))) return_trace (false);
|
||||
|
||||
|
||||
const auto &parts = StructAtOffset<hvgl_impl::PartsIndex> (this, partsOff);
|
||||
if (unlikely (!parts.sanitize (c, (unsigned) partCount))) return_trace (false);
|
||||
|
||||
|
||||
Reference in new issue
Block a user