mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-21 15:01:01 +01:00
The repacker graph sanitizer accepted non-v1 GSUB/GPOS roots because GSUBGPOS::get_size() returns only the version field size for unsupported major versions. Graph specialization then still consulted the numeric version and could read the v1.2 lookupList2 field from a too-small fuzz object. Require version major 1 before using GSUB/GPOS graph-specific lookup discovery. Testing: meson test -C build test-repacker test-classdef-graph Testing: meson test -C build --suite subset Testing: meson test -C build Assisted-by: OpenAI Codex