Merge pull request #4056 from harfbuzz/fix-sweep-gradient-hang

[hb-cairo] Fixes for sweep gradients
This commit is contained in:
Matthias Clasen 2023-01-21 02:19:43 -05:00 committed by GitHub
commit 54d5321d13
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -723,8 +723,9 @@ _hb_cairo_add_sweep_gradient_patches (hb_color_stop_t *stops,
}
//assert (angles[0] + k * span <= 0 && 0 < angles[n_stops - 1] + k * span);
span = fabs (span);
for (unsigned l = k; 1; l++)
for (unsigned l = k; l < 1000; l++)
{
for (unsigned i = 1; i < n_stops; i++)
{