Add IsValidDNSDomain check to all HostResolverImpl::Resolve* calls.
https://chromium-review.googlesource.com/569298 added an extra check for hostname validity before doing a DNS lookup, but it only covered the main Resolve() path, not the two Resolve*FromCache ones. This prevents bad domains from getting into the cache, but certain bad domain names can still be resolved from the Resolve*FromCache calls without a DNS lookup, like *.localhost domains. This CL fixes that, and merges more common code between the different resolution methods, so hopefully this will be less likely to regress in the future. Bug: 496468 Change-Id: I3ec16ae77a1f1a074e37a2c29a23d2423a4b42e0 Reviewed-on: https://chromium-review.googlesource.com/578207 Commit-Queue: Matt Menke <mmenke@chromium.org> Reviewed-by:Miriam Gershenson <mgersh@chromium.org> Cr-Commit-Position: refs/heads/master@{#488344}
Showing
Please register or sign in to comment