step-examples/12-1b-header/Lh010.stp
Sources
- 06-nist-sfa S013, 12-adversarial A035, 16-iso-spec N024
Description
FILE_DESCRIPTION's `implementation_level` must be one of the canonical conformance codes `'1;1'`, `'2;1'`, `'3;1'`, `'4;1'`, `'4;2'`, `'4;3'`. Real files contain `'1.0'`, `'2;1;1'`, `'2.1'`, the empty string, or vendor branding strings (`'Simulia 2018'`). Overlong values can additionally trigger fixed-buffer overflows in legacy translators.
Reproducer recipe
`FILE_DESCRIPTION((''),'1.0');`, `FILE_DESCRIPTION((''),'Simulia 2018');`, or `FILE_DESCRIPTION(('x'),'AAAA…(2 KiB)…');` to exercise the overflow case.
Expected kernel behavior
warn-and-tolerate when the value is recognizable; reject overlong values; default to class 1 with a warning if unparseable. Validate length before copy into any fixed-size buffer.
Notes
**See also**: Le020. Synonyms: "non-canonical implementation_level in FILE_DESCRIPTION", "STEP conformance code wrong format", "vendor branding in implementation_level", "1.0 instead of 1;1 in header", "implementation_level overflow".
Expected validation
occt=empty/empty gmsh=empty ifc=schema_n/a
Byte assertions
contains(b"'Simulia 2018'") or matches(rb"FILE_DESCRIPTION\([^;]*'1\.0'")contains(b'Simulia') or contains(b"'1.0'")
Tier-3 assertions
shape_null == True
Cross-references
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes
1ISO-10303-21; 2/* Lh010: FILE_DESCRIPTION implementation_level is a vendor branding string */ 3/* ISO 10303-21 §8: implementation_level must be a canonical conformance code */ 4/* Valid codes: '1;1' '2;1' '3;1' '4;1' '4;2' '4;3' */ 5/* DEFECT: 'Simulia 2018' is not a conformance code; receivers cannot parse it */ 6/* Legacy translators with fixed-size buffers risk overflow on long vendor strings */ 7HEADER; 8/* DEFECT: implementation_level is a vendor branding string, not a conformance code */ 9FILE_DESCRIPTION(('Lh010: non-canonical implementation_level vendor branding string'),'Simulia 2018'); 10FILE_NAME('Lh010.stp','2026-06-20T00:00:00',(''),(''),'cad-research-suite','',''); 11FILE_SCHEMA(('AUTOMOTIVE_DESIGN')); 12ENDSEC; 13DATA; 14#1=CARTESIAN_POINT('origin',(0.,0.,0.)); 15#2=CARTESIAN_POINT('corner',(1.,1.,0.)); 16#3=DIRECTION('xdir',(1.,0.,0.)); 17#4=DIRECTION('zdir',(0.,0.,1.)); 18#5=GEOMETRIC_CURVE_SET('non-canonical-impl-level-shape',(#1,#2)); 19ENDSEC; 20END-ISO-10303-21;