Files
harfbuzz/test
Behdad Esfahbod 3957e16e6c [set] Skip empty pages during reverse iteration (#6332)
Deleting the last member of a page leaves an empty page in the sparse set. `hb_bit_page_t::get_max()` returned zero for that page, so reverse iteration could report a value that was never in the set. For example, add and delete 512, then iterate backward from 1024: HarfBuzz reported 512 from an empty set.

Return INVALID for an empty page, matching get_min(), so previous() skips it. Cover reverse scalar/range iteration with retained empty pages, including inverted sets.

Assisted-by: OpenAI Codex
2026-10-07 12:09:14 -06:00
..