CodeQL (go/allocation-size-overflow, alerts #115/#116) flagged the len(rawDomains)+len(rawResolvers) capacity hint. The sum cannot overflow in practice, but the hint bought nothing: resolver-derived domains are deduplicated and append grows the slice as needed. |
||
|---|---|---|
| .. | ||
| xdns.go | ||
| xdns_test.go | ||