Commit ad78486
committed
net_imap: Tolerate header lines longer than 1,000.
If a header line is longer than 1,000 characters, this would previously
cause parsing to fail. The X-Xfinity-VAAS header has been observed in
the while with 1,263 characters all on a single line. Even though headers
like this Xfinity header violate the RFC, we should be able to tolerate
them and not abort header parsing entirely; increase the buffer size by
50%, which should be sufficient for edge cases like this.
LBBS-147 #close1 parent 9e3725a commit ad78486
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
266 | 266 | | |
267 | 267 | | |
268 | 268 | | |
269 | | - | |
| 269 | + | |
270 | 270 | | |
271 | 271 | | |
272 | 272 | | |
| |||
327 | 327 | | |
328 | 328 | | |
329 | 329 | | |
330 | | - | |
| 330 | + | |
331 | 331 | | |
332 | 332 | | |
333 | 333 | | |
| |||
0 commit comments