Ls038 — Instance ID `#0` (must be positive non-zero)

§12.1c instance-namespace

P1 — silent data loss

syntax

Sources

Description

ISO 10303-21 requires positive non-zero instance IDs. `#0` is invalid.

Reproducer recipe

`#0=IFCPERSON($,$,'',$,$,$,$,$);`

Expected kernel behavior

Reject `#0` with `E_INSTANCE_ID_RANGE`; continue parsing the remainder of the section rather than skipping it.

Notes

**See also**: Lh023, Ls051, Ls052. Synonyms: "instance ID #0 invalid", "STEP entity numbered zero", "zero instance ID rejected", "#0 as definition or reference", "non-positive STEP instance ID".

Expected validation

occt=empty/empty gmsh=empty ifc=schema_n/a

Byte assertions

Tier-3 assertions

Cross-references

Lh023, Ls051, Ls052

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes (with defect highlighting)
1/* Ls038 - Instance ID #0 (must be positive non-zero)
2   ----------------------------------------------------------------------
3   Catalog section : §12.1c instance-namespace
4   Sources         : T016, T017, A022
5   See also        : Lh023, Ls051, Ls052
6   ----------------------------------------------------------------------
7   Defect
8     ISO 10303-21 §11.1 requires positive non-zero instance IDs.
9     #0 is invalid: zero is not a positive integer.
10   Expected behavior
11     Reject #0 with E_INSTANCE_ID_RANGE; continue parsing the remainder
12     of the section rather than skipping it.
13   ----------------------------------------------------------------------
14*/
15ISO-10303-21;
16HEADER;
17FILE_DESCRIPTION(('Ls038 - instance ID #0 is invalid'),'2;1');
18FILE_NAME('Ls038.stp','2026-06-20T00:00:00',('auto-generated'),(''),
19  'auto-generated','','');
20FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }'));
21ENDSEC;
22DATA;
23/* Defect: #0 is an invalid instance ID (must be >= 1 per §11.1) */
24#0=CARTESIAN_POINT('origin',(0.,0.,0.));
25#1=DIRECTION('x',(1.,0.,0.));
26#2=VECTOR('v',#1,1.);
27/* Back-reference to invalid #0 -- becomes dangling after rejection */
28#3=LINE('l',#0,#2);
29ENDSEC;
30END-ISO-10303-21;