Files
harfbuzz/util
Behdad EsfahbodandClaude Sonnet 4.5 f33645dd8b [util] Fix multiple bugs in drawing utilities
Fixed three bugs found during code review:

1. Division by zero in normalize_pt(): Added check to return {0, 0}
   when normalizing a zero-length vector, preventing NaN values in
   sweep gradient rendering.

2. Memory leak in get_color_stops(): Now properly frees old memory
   before reallocating and checks for malloc failure to prevent
   null pointer dereference.

3. Integer division in helper_cairo_create_context(): Fixed missing
   decimal point causing integer division (br / 255) instead of
   floating-point division, which resulted in incorrect alpha
   channel calculations for color blending.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-15 10:12:43 -03:00
..
2023-01-21 15:27:56 +02:00
2025-04-06 16:20:23 -06:00
2026-02-12 15:26:19 -07:00
2020-07-29 08:44:23 +04:30
2023-01-16 12:38:53 -07:00
2015-04-09 19:16:57 -07:00
2026-02-15 09:26:23 -03:00
2023-01-12 17:04:24 -07:00
2026-02-08 20:18:50 -07:00