Repository navigation
Commit c697eaa
fix: Address6.fromURL squelches port 65536 as valid
Valid ports are 0-65535 (16-bit), but the range check used `> 65536`,
so a port of exactly 65536 slipped through instead of being nulled
out like every other out-of-range value. Looks like a plain off-by-one
that's been there since the very first commit. Updated the two
existing tests that had baked the wrong expectation in and added one
pinning 65535 as the actual max.1 parent d46eb43 commit c697eaa
2 files changed
Lines changed: 13 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
246 | 246 | | |
247 | 247 | | |
248 | 248 | | |
249 | | - | |
250 | | - | |
| 249 | + | |
| 250 | + | |
251 | 251 | | |
252 | 252 | | |
253 | 253 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
608 | 608 | | |
609 | 609 | | |
610 | 610 | | |
611 | | - | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
612 | 619 | | |
613 | 620 | | |
614 | 621 | | |
615 | | - | |
| 622 | + | |
616 | 623 | | |
617 | 624 | | |
618 | 625 | | |
| |||
622 | 629 | | |
623 | 630 | | |
624 | 631 | | |
625 | | - | |
| 632 | + | |
626 | 633 | | |
627 | 634 | | |
628 | 635 | | |
629 | | - | |
| 636 | + | |
630 | 637 | | |
631 | 638 | | |
632 | 639 | | |
| |||
0 commit comments