step-examples/12-11-adversarial/Ad096.stp
Sources
- OCCT MANTIS#0027645
- OCCT MANTIS#0027404
- OCCT MANTIS#0030380 (OCCT MANTIS tracker 502 as of 2026-05-02)
Description
AP242 introduces entities (e.g., `TESSELLATED_SHELL`, `KINEMATIC_LINK_REPRESENTATION`) that older readers do not recognise. Reader attempts to construct an in-memory entity object and access-violates when the entity factory returns null.
Reproducer recipe
AP242 STEP file with `TESSELLATED_SHELL` referencing triangles. Reader is AP203/AP214-only.
Expected kernel behavior
unrecognised entity types are skipped with diagnostic; never crash on schema mismatch.
Notes
**See also**: A030.
Expected validation
occt=empty/empty gmsh=empty ifc=schema_n/a
Byte assertions
contains(b'TESSELLATED_SHELL')contains(b'TESSELLATED')
Tier-3 assertions
load == "ok"
Cross-references
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes (with defect highlighting)
1ISO-10303-21; 2/* Ad096: AP242 TESSELLATED_SHELL entity not recognised by AP203/AP214-only reader; entity factory returns null for unknown type; reader access-violates dereferencing the null factory result; unrecognised entity types must be skipped with diagnostic; OCCT MANTIS#0027645, #0027404, #0030380; See also A030; GEOMETRIC_CURVE_SET IS model entity â OCC yields empty */ 3HEADER; 4FILE_DESCRIPTION(('Ad096'),'2;1'); 5FILE_NAME('Ad096.stp','2026-06-17T00:00:00',(''),(''),'cad-research-suite','',''); 6FILE_SCHEMA(('AP242_MANAGED_MODEL_BASED_3D_ENGINEERING_MIM_LF { 1 0 10303 442 1 1 4 }')); 7ENDSEC; 8DATA; 9#1=CARTESIAN_POINT('',(0.0,0.0,0.0)); 10#2=GEOMETRIC_CURVE_SET('',(#1)); 11#3=COORDINATES_LIST('tess_coords',3,((0.0,0.0,0.0),(1.0,0.0,0.0),(0.5,1.0,0.0))); 12#4=TRIANGULATED_FACE('tess_face',#3,$,((.FALSE.,.FALSE.,.FALSE.)),((1,2,3))); 13#5=TESSELLATED_SHELL('ap242_shell',(#4)); 14#6=KINEMATIC_LINK_REPRESENTATION('ap242_kinematic',(),#9003); 15ENDSEC; 16END-ISO-10303-21;