Repository navigation
Morrow v2.4.20
Morrow v2.4.20
Hardening release: parser/LSP safety, collection bounds, benchmark tooling, C ABI,
setjmp interoperability, and safer release publishing.
Fixes
- #14 — bounded parser recursion. Expression, statement, type, and unary
parsing share a 512-level limit. Excessively nested input reports
Parser nesting limit exceeded (maximum 512 levels)and stops instead of
overflowing the stack. - #15 — unterminated block comments. The lexer reports
Unterminated block commentat the comment's starting location. Valid multiline
comments continue to work. - #16 — bounded LSP framing.
Content-Lengthis strictly validated, messages
are capped at 8 MiB, header lines at 255 bytes, and header count at 64. Malformed
frames produce a JSON-RPC-32700error and terminate cleanly. - #17 — explicit, non-destructive publishing. Publish/ship now require
--publish; tag pushes are no longer forced by default; tag format is validated;
tag conflicts produce clear failures.RELEASE_PROCESS.mdand the Makefile
document the behavior. - #18 — collection boundary safety. Invalid
Vecindices return a zero value
(or no-op forvec_set); invalid capacities and allocation failures are safe;
HashMap lookup/insert/remove/free handle invalid state predictably. Contracts are
documented and covered by boundary tests. - #19 — benchmark runner repaired.
benchmarks/bench_runner.pyis valid UTF-8,
runsforge benchfrom the documented location, propagates failures, and the
release gate nowpy_compiles every Python helper. - #20 — C ABI and setjmp hardening. Extern declarations use real C types
(i32/i16/i8/u8/f32/f64/pointers/void), narrow returns are
sign/zero-extended correctly, structs by value are rejected, and setjmp carries
LLVM'sreturns_twiceattribute. Added FFI + longjmp regression coverage.
Verification
forge test: 30 positive suites + 20 compile-fail suites, all passing.- Self-hosting three-stage fixed point recorded in
releases/v2.4.20.json. - Release gate builds all 22 examples; supported examples execute with expected exit
codes, and build-only examples remain documented indocs/RUNTIME.md. - Benchmark runner and Python syntax gate pass.
- FFI, SQLite build paths, and ABI/setjmp regressions pass.