blob: 5232cf70c692440bfe6e6dbf1af91db93dbf5671 [file] [log] [blame]
Brad Bishop19323692019-04-05 15:28:33 -04001There is a potential infinite-loop in function _arc_error_normalized().
2
3CVE: CVE-2019-6461
4Upstream-Status: Pending
5Signed-off-by: Ross Burton <ross.burton@intel.com>
6
7diff --git a/src/cairo-arc.c b/src/cairo-arc.c
8index 390397bae..f9249dbeb 100644
9--- a/src/cairo-arc.c
10+++ b/src/cairo-arc.c
11@@ -99,7 +99,7 @@ _arc_max_angle_for_tolerance_normalized (double tolerance)
12 do {
13 angle = M_PI / i++;
14 error = _arc_error_normalized (angle);
15- } while (error > tolerance);
16+ } while (error > tolerance && error > __DBL_EPSILON__);
17
18 return angle;
19 }