From 02d13963a71a878ecb1dfcbfa9df0d3d1dd4f2a1 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 27 Jun 2023 15:23:17 -0400 Subject: [PATCH] Fix a stack overflow in a test The test_in_fill_rotated test was mistakenly assuming that conics come with 4 points, when the only have 3. Oops. --- testsuite/gsk/path.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/testsuite/gsk/path.c b/testsuite/gsk/path.c index 138d5923fe..527dcbdeda 100644 --- a/testsuite/gsk/path.c +++ b/testsuite/gsk/path.c @@ -1069,8 +1069,8 @@ rotate_path_cb (GskPathOperation op, break; case GSK_PATH_CONIC: - gsk_path_builder_conic_to (builders[0], pts[2].x, pts[2].y, pts[3].x, pts[3].y, weight); - gsk_path_builder_conic_to (builders[1], pts[2].y, -pts[2].x, pts[3].y, -pts[3].x, weight); + gsk_path_builder_conic_to (builders[0], pts[1].x, pts[1].y, pts[2].x, pts[2].y, weight); + gsk_path_builder_conic_to (builders[1], pts[1].y, -pts[1].x, pts[2].y, -pts[2].x, weight); break; default: