Repository navigation
Commit 1ea04cc
authored
A SETTINGS frame the capture cuts short falls back to Raw. Its settings list
is sized by the frame's Length, so past the octets present a SettingPair
consumes nothing, and ListField.unpack refuses it as a loop making no progress.
- SettingPairListField sizes SettingsFrame.settings by the octets present: the
setting the data ends inside is kept as far as it goes, and Schema.unpack
records the short read. ListField is unchanged.
- HTTPv2.make takes frame_length, which HTTPv2._make_data passes through. One
that is no int from the frame's own Length to 0xFFFFFF, or above it before a
payload, raises ProtocolError (#2617).
- HTTPv2.pack has a frame made short of its Length parsed back at that Length,
as the capture was, rather than refused by HTTPv2.read.
- Tests: cuts at every offset through TCP and through HTTPv2, a whole frame,
the next frame left alone, the field on bytes and a stream, frame_length's
refusals and edges, a dict with no length, and the short-read sweep.
HTTP, HTTP/2, schema, sweep, doc-claim and member-order modules pass;
captures parse identically to main.
1 parent fc80fb1 commit 1ea04cc
5 files changed
Lines changed: 386 additions & 8 deletions
File tree
- docs/source/pcapkit/protocols/application
- pcapkit/protocols
- application
- schema/application
- tests/protocols
- application
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
152 | 156 | | |
153 | 157 | | |
154 | 158 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
208 | 208 | | |
209 | 209 | | |
210 | 210 | | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
211 | 215 | | |
212 | 216 | | |
213 | 217 | | |
| |||
314 | 318 | | |
315 | 319 | | |
316 | 320 | | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
317 | 326 | | |
318 | 327 | | |
319 | 328 | | |
| |||
418 | 427 | | |
419 | 428 | | |
420 | 429 | | |
| 430 | + | |
421 | 431 | | |
422 | 432 | | |
423 | 433 | | |
| |||
437 | 447 | | |
438 | 448 | | |
439 | 449 | | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
440 | 456 | | |
441 | 457 | | |
442 | 458 | | |
| |||
446 | 462 | | |
447 | 463 | | |
448 | 464 | | |
449 | | - | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
450 | 470 | | |
451 | 471 | | |
452 | 472 | | |
| |||
497 | 517 | | |
498 | 518 | | |
499 | 519 | | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
500 | 530 | | |
501 | 531 | | |
502 | 532 | | |
| |||
528 | 558 | | |
529 | 559 | | |
530 | 560 | | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
531 | 567 | | |
532 | 568 | | |
533 | 569 | | |
534 | 570 | | |
535 | 571 | | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
536 | 577 | | |
537 | 578 | | |
538 | 579 | | |
| |||
600 | 641 | | |
601 | 642 | | |
602 | 643 | | |
603 | | - | |
604 | | - | |
605 | | - | |
606 | | - | |
| 644 | + | |
| 645 | + | |
607 | 646 | | |
608 | 647 | | |
609 | 648 | | |
| |||
612 | 651 | | |
613 | 652 | | |
614 | 653 | | |
| 654 | + | |
615 | 655 | | |
616 | 656 | | |
617 | 657 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
38 | | - | |
| 39 | + | |
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
| |||
343 | 344 | | |
344 | 345 | | |
345 | 346 | | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
346 | 387 | | |
347 | 388 | | |
348 | 389 | | |
| |||
352 | 393 | | |
353 | 394 | | |
354 | 395 | | |
355 | | - | |
356 | | - | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
357 | 399 | | |
358 | 400 | | |
359 | 401 | | |
| |||
0 commit comments