Commit 98f027b
test: adversarial coverage for the untrusted SNI/DNS parsers
parse_sni: a ClientHello whose server_name name_len (0xffff) overruns the buffer must return
None, not OOB-panic. parse_dns_qname: reject a compression pointer (never valid in a query) and
a label length that runs past the buffer. Locks in the bounds-checks on parsers that consume raw
network bytes from arbitrary processes (a panic there = collector DoS). Collector parser tests
3 -> 5.1 parent 9c7690d commit 98f027b
1 file changed
Lines changed: 31 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
600 | 600 | | |
601 | 601 | | |
602 | 602 | | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
603 | 634 | | |
0 commit comments