Commit 8f66aa2
committed
fix: reject orphan positional inline bodies in generic decoder (SPEC 16.5)
The object-body parser silently skipped any line it did not recognize as a
section, a key=value field, or an inline array. A stray positional inline body
(a pipe-delimited line with no eligible ^{} cell, e.g. a 2nd 'Bob|b@t.com' after
a row's one inline cell was filled) fell through once the row count was satisfied
and was DROPPED with no error - silent data loss, a lossless round-trip hole.
Such lines are now rejected: a pipe-delimited line as orphan_inline_attachment,
any other unrecognized line as invalid_line. Verified that no legitimate encoder
output reaches this catch-all (full conformance + property round-trip + fuzz green;
legitimate root fields after a nested ## section still decode).1 parent 349c6db commit 8f66aa2
2 files changed
Lines changed: 9 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
180 | | - | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
181 | 188 | | |
182 | 189 | | |
183 | 190 | | |
| |||
0 commit comments