Two bugs were fixed in the closure parity checker: 1. Feature filtering for ligatures: When processing deferred ligatures, the code re-scanned all edges to find satisfying ligature sets but forgot to filter by active features. This allowed ligatures to be added via edges from inactive features if their ligature set happened to be satisfied. 2. Flag checking for ligatures: When adding ligatures, we weren't checking or propagating the edge flags (FROM_CONTEXT_POSITION, FROM_NESTED_CONTEXT), so flagged ligature edges weren't being reported as expected over-approximation. Also includes related changes to the depend extraction: - Add FROM_NESTED_CONTEXT flag for nested contextual lookups - Add context handling for ReverseChainSingleSubstFormat1 - Remove cmap from glyf/CFF closure stage (UVS edges shouldn't be followed for glyph-based closure) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Security Fuzzers
To build the fuzzers with libFuzzer to perform actual fuzzing, build with:
CXX=clang++ CXXFLAGS="-fsanitize=address,fuzzer-no-link" meson fuzzbuild --default-library=static -Dfuzzer_ldflags="-fsanitize=address,fuzzer"
ninja -Cfuzzbuild
Then, run the fuzzer like this:
fuzzbuild/test/fuzzing/hb-{shape,draw,subset,set,depend}-fuzzer [-max_len=2048] [CORPUS_DIR]
Where max_len specifies the maximal length of font files to handle. The smaller the faster.
Note: The depend fuzzer requires -Ddepend_api=true meson option.
For more details consult the following locations:
Depend Closure Parity Test
The hb-depend-closure-parity test is distinct from the security fuzzers.
While security fuzzers test robustness against malformed input, the closure
parity test validates correctness by emulating the glyph closure calculation
used for subsetting with one generated from the dependency graph to avoid
implementation divergence. It should only be run on valid fonts.