Focused Bun parity tranche split from #66.
Current state:
js/bun/http/request-smuggling.test.tsis byte-identical to~/Code/bun- Home currently rewrites the complete security corpus to one native TODO
- baseline: 0 active pass / 1 TODO
Scope:
- reject ambiguous and malformed Transfer-Encoding combinations
- reject TE + Content-Length and conflicting/empty Content-Length framing
- preserve valid duplicate Content-Length and valid chunked requests
- strictly validate chunk hexadecimal sizes, overflow, and CRLF terminators
- retain split-segment parser state across TCP writes
- prevent smuggled/pipelined requests from reaching handlers
- isolate headers and bodies between sequential requests
- return deterministic HTTP 400 responses and close unsafe connections
- keep the upstream fixture untouched and add a permanent exact-corpus regression
Acceptance:
- exact upstream fixture passes with zero failures/TODOs/unsupported cases
- adjacent h1spec, chunking, header, and Bun.serve corpora remain green
- complete
home_testgate passes - changes are implemented in shared behavior, without fixture-specific output shortcuts