diff --git a/src/Extrema/Extrema_ExtElC2d.cdl b/src/Extrema/Extrema_ExtElC2d.cdl
index eb46cf51bc..d27118abb3 100644
--- a/src/Extrema/Extrema_ExtElC2d.cdl
+++ b/src/Extrema/Extrema_ExtElC2d.cdl
@@ -137,7 +137,7 @@ fields
     myDone : Boolean;
     myIsPar: Boolean;
     myNbExt: Integer;
-    mySqDist: Real [4];
-    myPoint: POnCurv2d from Extrema [4,2];
+    mySqDist: Real [8];
+    myPoint: POnCurv2d from Extrema [8,2];
 
 end ExtElC2d;
diff --git a/tests/bugs/moddata_3/bug24627 b/tests/bugs/moddata_3/bug24627
new file mode 100755
index 0000000000..f8d4bcf9d5
--- /dev/null
+++ b/tests/bugs/moddata_3/bug24627
@@ -0,0 +1,24 @@
+puts "========"
+puts "OCC24627"
+puts "========"
+puts ""
+######################################
+## Extrema 2d between an arc of circle and an ellipse crashes
+######################################
+
+# Make a planar face (for construction of 2 curves).
+plane p 0 0 0 0 0 1
+mkface f p -1000 1000 -1000 1000
+
+# Load an arc of circle and make a 2d arc.
+restore [locate_data_file bug24627_circle.brep] c
+explode c e
+mk2dcurve c2d c_1 f
+
+# Load a ellipse and make a 2d ellipse.
+restore [locate_data_file bug24627_ellipse.brep] e
+explode e e
+mk2dcurve e2d e_1 f
+
+# Compute extrema points for these two 2d curves.
+2dextrema c2d e2d