mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-20 14:31:10 +01:00
emit_segment() formed its 16.16 fixed-point slope by left-shifting a signed delta-x value. Negative dx values make that shift undefined, and UBSan reports it on malformed glyph outlines. Use 64-bit multiplication by 1<<16 instead, preserving the same fixed- point result without relying on signed-shift behavior. Tested: - meson compile -C build hb-raster-fuzzer Fixes: https://oss-fuzz.com/testcase-detail/4797078076456960 Assisted-by: OpenAI Codex