Twi001 — Empty edge_list in EDGE_LOOP

§12.3b wire-loop

P1 — silent data loss

crash topology

Sources

Sender

Unknown (bug33307 corpus); seen on real STEP imports

Description

STEP `EDGE_LOOP` declared with empty edge aggregate (`#10=EDGE_LOOP('',());`). Translator drops the wire and fails the parent face; bare reader crashed before guards added.

Reproducer recipe

`#10=EDGE_LOOP('',());` referenced by `FACE_OUTER_BOUND` of an `ADVANCED_FACE`.

Expected kernel behavior

reject the loop with diagnostic; do not propagate null wire to face; do not crash.

Notes

The defect bites in two places: the AP203/AP242 entity-reader's edge-loop attribute-validation, and the topology translator's edge-loop transfer pass. Both must guard against the empty list. **See also**: Tsh023. Synonyms: "wire has no edges", "empty edge list crashes reader", "loop with zero edges", "face has no perimeter", "translator drops face on empty wire".

Expected validation

occt=shape(1)/shape(1) gmsh=shape(1) ifc=schema_n/a

Byte assertions

Tier-3 assertions

Cross-references

Tsh023

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes (with defect highlighting)
1ISO-10303-21;
2/* Twi001: OPEN_SHELL with one ADVANCED_FACE on a PLANE (z=0, normal +Z); FACE_OUTER_BOUND references an EDGE_LOOP with empty edge list EDGE_LOOP('',()); empty EDGE_LOOP IS directly wired into face boundary topology; translator must reject loop with diagnostic; must not propagate null wire to face; must not crash */
3HEADER;
4FILE_DESCRIPTION(('Twi001'),'2;1');
5FILE_NAME('Twi001.stp','2026-06-17T00:00:00',(''),(''),'cad-research-suite','','');
6FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }'));
7ENDSEC;
8DATA;
9#9000=APPLICATION_CONTEXT('mechanical design');
10#1=CARTESIAN_POINT('',(0.0,0.0,0.0));
11#2=DIRECTION('',(0.0,0.0,1.0));
12#3=DIRECTION('',(1.0,0.0,0.0));
13#4=AXIS2_PLACEMENT_3D('',#1,#2,#3);
14#5=PLANE('',#4);
15#6=EDGE_LOOP('',());
16#7=FACE_OUTER_BOUND('',#6,.T.);
17#8=ADVANCED_FACE('',(#7),#5,.T.);
18#9=OPEN_SHELL('',(#8));
19#10=SHELL_BASED_SURFACE_MODEL('',(#9));
20#9050=PRODUCT_CONTEXT('',#9000,'mechanical');
21#9051=PRODUCT('Twi001','Twi001','',(#9050));
22#9052=PRODUCT_DEFINITION_FORMATION('','',#9051);
23#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design');
24#9054=PRODUCT_DEFINITION('','','',#9052,#9053);
25#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054);
26#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
27#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
28#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
29#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value','');
30#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D'));
31#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#10),#9060);
32#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061);
33ENDSEC;
34END-ISO-10303-21;