Repository navigation
Commit 9f2bd5f
Stop vendoring resolv for two regexps
Vendored net/http loaded the whole 3500-line DNS resolver only to match
Resolv::IPv4::Regex and Resolv::IPv6::Regex when deciding whether an
address may be sent as a Server Name Indication. Inline equivalent
regexps instead, so that a resolver RubyGems never resolves with is no
longer shipped and no longer shows up as an outdated copy in security
audits of the Ruby tarball.
https://bugs.ruby-lang.org/issues/22317
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>1 parent 7e21899 commit 9f2bd5f
10 files changed
Lines changed: 105 additions & 3620 deletions
File tree
- lib/rubygems/vendor
- net-http/lib/net
- resolv
- lib
- tool
- automatiek
- bundler
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
533 | 533 | | |
534 | 534 | | |
535 | 535 | | |
536 | | - | |
537 | | - | |
538 | 536 | | |
539 | 537 | | |
540 | 538 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | 25 | | |
27 | 26 | | |
28 | 27 | | |
| |||
1535 | 1534 | | |
1536 | 1535 | | |
1537 | 1536 | | |
| 1537 | + | |
| 1538 | + | |
| 1539 | + | |
| 1540 | + | |
| 1541 | + | |
| 1542 | + | |
| 1543 | + | |
| 1544 | + | |
| 1545 | + | |
| 1546 | + | |
| 1547 | + | |
| 1548 | + | |
| 1549 | + | |
| 1550 | + | |
| 1551 | + | |
| 1552 | + | |
| 1553 | + | |
| 1554 | + | |
| 1555 | + | |
| 1556 | + | |
| 1557 | + | |
| 1558 | + | |
| 1559 | + | |
1538 | 1560 | | |
1539 | 1561 | | |
1540 | 1562 | | |
| |||
1734 | 1756 | | |
1735 | 1757 | | |
1736 | 1758 | | |
1737 | | - | |
| 1759 | + | |
1738 | 1760 | | |
1739 | 1761 | | |
1740 | 1762 | | |
| |||
This file was deleted.
0 commit comments