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 <noreply@anthropic.com>
This commit is contained in:
parent
8d263bb60e
commit
b2447e4f99
1 changed files with 2 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue