Repository navigation
Commit b13fdd7
Only accept a chunk size at the start of the chunk-size line
read_chunked took the first run of hex digits anywhere in the line, so
lines such as "0x1f" or ";ext=1f" were read as different sizes. Require
the size at the start of the line, followed only by optional whitespace
and a chunk extension, as RFC 9112 does.
Co-authored-by: Clément Joubert (https://hackerone.com/czjfr)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>1 parent 12151ce commit b13fdd7
2 files changed
Lines changed: 20 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
649 | 649 | | |
650 | 650 | | |
651 | 651 | | |
652 | | - | |
| 652 | + | |
653 | 653 | | |
654 | 654 | | |
655 | 655 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
150 | 169 | | |
151 | 170 | | |
152 | 171 | | |
| |||
0 commit comments