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 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-09-30 00:17:27 +02:00
commit 61842a3952

View file

@ -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(