mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-20 14:31:10 +01:00
Mark-to-mark attachment can accumulate an unbounded cross-direction offset. Clamp anchor conversion and saturate the immediate addition so overlong mark clusters stop at hb_position_t limits instead of invoking signed-overflow undefined behavior. Add a regression for issue #6151 using 35,000 combining marks. Testing: meson test -C build --print-errorlogs Assisted-by: Codex <codex@openai.com>