From b2447e4f9936a53c3b680b472f6eff02d379a145 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sat, 10 Oct 2026 13:56:43 +0200 Subject: [PATCH] Hosted lane tests: pin DEL (0x7f) as a key byte that cannot ride a header Follow-up hosted-key-del-pin: a mutant allowing DEL survived the key-shape test. The case list gains an interior DEL. Builds: yes. Co-Authored-By: Claude Opus 5.5 --- crates/ghostlight/src/local_inference.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/ghostlight/src/local_inference.rs b/crates/ghostlight/src/local_inference.rs index 97bb460..fd7cdff 100644 --- a/crates/ghostlight/src/local_inference.rs +++ b/crates/ghostlight/src/local_inference.rs @@ -1996,7 +1996,7 @@ mod tests { #[test] fn hosted_binding_refuses_a_key_shape_that_cannot_ride_a_header() { let directory = tempfile::tempdir().unwrap(); - let cases: [(&str, &[u8]); 8] = [ + let cases: [(&str, &[u8]); 9] = [ ("interior newline", b"keycanary\nsecondline"), ("interior carriage return", b"keycanary\rsecondline"), ("interior tab", b"keycanary\tsecondline"), @@ -2005,6 +2005,7 @@ mod tests { ("trailing space before the newline", b"keycanary \n"), ("non-ascii", "keycanary-\u{e9}".as_bytes()), ("leading newline", b"\nkeycanary"), + ("interior DEL", b"keycanary\x7fsecondline"), ]; for (label, content) in cases { let path = write_key_file(&directory, content);