commit | 54d5321d136ebd4be799d8c3dcf4e433b1c3778f | [log] [tgz] |
---|---|---|
author | Matthias Clasen <matthias.clasen@gmail.com> | Sat Jan 21 02:19:43 2023 -0500 |
committer | GitHub <noreply@github.com> | Sat Jan 21 02:19:43 2023 -0500 |
tree | ab86ddf24fb1ce0226d65637104834c664193cb7 | |
parent | fcb5111cc6db8e310d62e27d93980a0f67ee936a [diff] | |
parent | 47baa1da6bbf386d7be73ca4a79d2c819ca2a3c9 [diff] |
Merge pull request #4056 from harfbuzz/fix-sweep-gradient-hang [hb-cairo] Fixes for sweep gradients
diff --git a/src/hb-cairo-utils.cc b/src/hb-cairo-utils.cc index ad0627c..10a811b 100644 --- a/src/hb-cairo-utils.cc +++ b/src/hb-cairo-utils.cc
@@ -723,8 +723,9 @@ } //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++) {