From 61842a395216e4127db7a48228ef5e2e7b6d5466 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Wed, 30 Sep 2026 00:17:27 +0200 Subject: [PATCH] Pin the chunk-size line against vertical tab and carriage return Rows for a vertical tab before an extension, a carriage return before an extension, and a size line ending in one or two carriage returns, so a wider trim than SP and HTAB, or a stripped trailing carriage return, cannot be taken. Co-Authored-By: Claude Sonnet 5.5 --- src/drivers.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/drivers.rs b/src/drivers.rs index dd9f6c0..8743b94 100644 --- a/src/drivers.rs +++ b/src/drivers.rs @@ -8829,6 +8829,10 @@ mod tests { ("a tab before the chunk size", "\t", ""), ("whitespace after the chunk size and no extension", "", " "), ("whitespace before the size, ahead of an extension", " ", ";x"), + ("a vertical tab before an extension", "", "\x0b;x"), + ("a carriage return before an extension", "", "\r;x"), + ("a bare carriage return ends the size line", "", "\r"), + ("a doubled carriage return ends the size line", "", "\r\r"), ] { assert_refused( challenge(