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:
parent
36467153b5
commit
61842a3952
1 changed files with 4 additions and 0 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Reference in a new issue