step-examples/12-1c-syntax/Ls032.stp
Sources
- T004 (`MAX_COMMENT_LENGTH 8192`)
Description
stepcode hardcodes an 8 KiB ceiling on comment body length. Files with multi-page log banners exceed this and trip rejection.
Reproducer recipe
Single `/* .. */` containing >8192 characters before first `DATA;` instance.
Expected kernel behavior
Comment length unbounded (memory-bound only); never silently truncate.
Notes
Synonyms: "STEP comment exceeds buffer", "8KB comment limit", "multi-page log banner in STEP", "long comment rejected by stepcode", "huge STEP comment overflows buffer". Provenance tier: bytes-only (Q5 full-corpus 2026-07-01).
Expected validation
occt=empty/empty gmsh=empty ifc=schema_n/a
Provenance tier
bytes-only — defect not fully embodied in fixture bytes.
Byte assertions
length > 8192length > 8000
Tier-3 assertions
shape_null == True
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes
1/* 2 Ls032 - Comment longer than implementation buffer 3 ========================================================================= 4 Catalog section : §12.1c comments 5 Sources : T004 (MAX_COMMENT_LENGTH 8192) 6 ========================================================================= 7 Defect 8 stepcode hardcodes an 8 KiB ceiling on comment body length. Files with 9 multi-page log banners exceed this and trip rejection. ISO 10303-21 has 10 no comment-length limit; memory-bound only. 11 Expected behavior 12 Comment length is unbounded (memory-bound only); never silently truncate. 13 ========================================================================= 14 BEGIN EXTENDED LOG BANNER 15 ========================================================================= 16 This comment body is intentionally padded to exceed the 8192-byte ceiling 17 that stepcode and several other implementations impose. A conforming reader 18 must accept arbitrarily long comment bodies without truncation or rejection. 19 The following lines contain generated padding to push the total comment body 20 length well past 8 KiB (8192 bytes). The content is structurally identical 21 to a typical multi-page export log banner that a CAD system might prepend. 22 23 This comment body is intentionally padded to exceed the 8192-byte ceiling 24 that stepcode and several other implementations impose. A conforming reader 25 must accept arbitrarily long comment bodies without truncation or rejection. 26 The following lines contain generated padding to push the total comment body 27 length well past 8 KiB (8192 bytes). The content is structurally identical 28 to a typical multi-page export log banner that a CAD system might prepend. 29 30 This comment body is intentionally padded to exceed the 8192-byte ceiling 31 that stepcode and several other implementations impose. A conforming reader 32 must accept arbitrarily long comment bodies without truncation or rejection. 33 The following lines contain generated padding to push the total comment body 34 length well past 8 KiB (8192 bytes). The content is structurally identical 35 to a typical multi-page export log banner that a CAD system might prepend. 36 37 This comment body is intentionally padded to exceed the 8192-byte ceiling 38 that stepcode and several other implementations impose. A conforming reader 39 must accept arbitrarily long comment bodies without truncation or rejection. 40 The following lines contain generated padding to push the total comment body 41 length well past 8 KiB (8192 bytes). The content is structurally identical 42 to a typical multi-page export log banner that a CAD system might prepend. 43 44 This comment body is intentionally padded to exceed the 8192-byte ceiling 45 that stepcode and several other implementations impose. A conforming reader 46 must accept arbitrarily long comment bodies without truncation or rejection. 47 The following lines contain generated padding to push the total comment body 48 length well past 8 KiB (8192 bytes). The content is structurally identical 49 to a typical multi-page export log banner that a CAD system might prepend. 50 51 This comment body is intentionally padded to exceed the 8192-byte ceiling 52 that stepcode and several other implementations impose. A conforming reader 53 must accept arbitrarily long comment bodies without truncation or rejection. 54 The following lines contain generated padding to push the total comment body 55 length well past 8 KiB (8192 bytes). The content is structurally identical 56 to a typical multi-page export log banner that a CAD system might prepend. 57 58 This comment body is intentionally padded to exceed the 8192-byte ceiling 59 that stepcode and several other implementations impose. A conforming reader 60 must accept arbitrarily long comment bodies without truncation or rejection. 61 The following lines contain generated padding to push the total comment body 62 length well past 8 KiB (8192 bytes). The content is structurally identical 63 to a typical multi-page export log banner that a CAD system might prepend. 64 65 This comment body is intentionally padded to exceed the 8192-byte ceiling 66 that stepcode and several other implementations impose. A conforming reader 67 must accept arbitrarily long comment bodies without truncation or rejection. 68 The following lines contain generated padding to push the total comment body 69 length well past 8 KiB (8192 bytes). The content is structurally identical 70 to a typical multi-page export log banner that a CAD system might prepend. 71 72 This comment body is intentionally padded to exceed the 8192-byte ceiling 73 that stepcode and several other implementations impose. A conforming reader 74 must accept arbitrarily long comment bodies without truncation or rejection. 75 The following lines contain generated padding to push the total comment body 76 length well past 8 KiB (8192 bytes). The content is structurally identical 77 to a typical multi-page export log banner that a CAD system might prepend. 78 79 This comment body is intentionally padded to exceed the 8192-byte ceiling 80 that stepcode and several other implementations impose. A conforming reader 81 must accept arbitrarily long comment bodies without truncation or rejection. 82 The following lines contain generated padding to push the total comment body 83 length well past 8 KiB (8192 bytes). The content is structurally identical 84 to a typical multi-page export log banner that a CAD system might prepend. 85 86 This comment body is intentionally padded to exceed the 8192-byte ceiling 87 that stepcode and several other implementations impose. A conforming reader 88 must accept arbitrarily long comment bodies without truncation or rejection. 89 The following lines contain generated padding to push the total comment body 90 length well past 8 KiB (8192 bytes). The content is structurally identical 91 to a typical multi-page export log banner that a CAD system might prepend. 92 93 This comment body is intentionally padded to exceed the 8192-byte ceiling 94 that stepcode and several other implementations impose. A conforming reader 95 must accept arbitrarily long comment bodies without truncation or rejection. 96 The following lines contain generated padding to push the total comment body 97 length well past 8 KiB (8192 bytes). The content is structurally identical 98 to a typical multi-page export log banner that a CAD system might prepend. 99 100 This comment body is intentionally padded to exceed the 8192-byte ceiling 101 that stepcode and several other implementations impose. A conforming reader 102 must accept arbitrarily long comment bodies without truncation or rejection. 103 The following lines contain generated padding to push the total comment body 104 length well past 8 KiB (8192 bytes). The content is structurally identical 105 to a typical multi-page export log banner that a CAD system might prepend. 106 107 This comment body is intentionally padded to exceed the 8192-byte ceiling 108 that stepcode and several other implementations impose. A conforming reader 109 must accept arbitrarily long comment bodies without truncation or rejection. 110 The following lines contain generated padding to push the total comment body 111 length well past 8 KiB (8192 bytes). The content is structurally identical 112 to a typical multi-page export log banner that a CAD system might prepend. 113 114 This comment body is intentionally padded to exceed the 8192-byte ceiling 115 that stepcode and several other implementations impose. A conforming reader 116 must accept arbitrarily long comment bodies without truncation or rejection. 117 The following lines contain generated padding to push the total comment body 118 length well past 8 KiB (8192 bytes). The content is structurally identical 119 to a typical multi-page export log banner that a CAD system might prepend. 120 121 This comment body is intentionally padded to exceed the 8192-byte ceiling 122 that stepcode and several other implementations impose. A conforming reader 123 must accept arbitrarily long comment bodies without truncation or rejection. 124 The following lines contain generated padding to push the total comment body 125 length well past 8 KiB (8192 bytes). The content is structurally identical 126 to a typical multi-page export log banner that a CAD system might prepend. 127 128 This comment body is intentionally padded to exceed the 8192-byte ceiling 129 that stepcode and several other implementations impose. A conforming reader 130 must accept arbitrarily long comment bodies without truncation or rejection. 131 The following lines contain generated padding to push the total comment body 132 length well past 8 KiB (8192 bytes). The content is structurally identical 133 to a typical multi-page export log banner that a CAD system might prepend. 134 135 This comment body is intentionally padded to exceed the 8192-byte ceiling 136 that stepcode and several other implementations impose. A conforming reader 137 must accept arbitrarily long comment bodies without truncation or rejection. 138 The following lines contain generated padding to push the total comment body 139 length well past 8 KiB (8192 bytes). The content is structurally identical 140 to a typical multi-page export log banner that a CAD system might prepend. 141 142 This comment body is intentionally padded to exceed the 8192-byte ceiling 143 that stepcode and several other implementations impose. A conforming reader 144 must accept arbitrarily long comment bodies without truncation or rejection. 145 The following lines contain generated padding to push the total comment body 146 length well past 8 KiB (8192 bytes). The content is structurally identical 147 to a typical multi-page export log banner that a CAD system might prepend. 148 149 This comment body is intentionally padded to exceed the 8192-byte ceiling 150 that stepcode and several other implementations impose. A conforming reader 151 must accept arbitrarily long comment bodies without truncation or rejection. 152 The following lines contain generated padding to push the total comment body 153 length well past 8 KiB (8192 bytes). The content is structurally identical 154 to a typical multi-page export log banner that a CAD system might prepend. 155 156 Status : Export succeeded 157 Tool : CAD Research Suite v1.0 (auto-generated fixture) 158 Date : 2026-06-20T00:00:00Z 159 Schema : AUTOMOTIVE_DESIGN 160 Entities : 2 (CARTESIAN_POINT, DIRECTION) 161 ========================================================================= 162 END EXTENDED LOG BANNER 163 ========================================================================= 164*/ 165ISO-10303-21; 166HEADER; 167FILE_DESCRIPTION(('Ls032 - comment longer than implementation buffer'),'2;1'); 168FILE_NAME('Ls032.stp','2026-06-20T00:00:00',('auto-generated'),(''), 169 'auto-generated','',''); 170FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }')); 171ENDSEC; 172DATA; 173#1=CARTESIAN_POINT('origin',(0.,0.,0.)); 174#2=DIRECTION('x',(1.,0.,0.)); 175ENDSEC; 176END-ISO-10303-21;