Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(124)

Issue 2294343003: Refuse to resolve some types of invalid DNS addresses. (Closed)

Created:
4 years, 3 months ago by mmenke
Modified:
4 years, 3 months ago
Reviewers:
Julia Tuttle
CC:
chromium-reviews, cbentzel+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

MockHostResolver: Don't resolve some types of invalid DNS addresses. The MockHostResolver didn't have the DNS validity check that HostResolverImpl had. This was causing a fuzzer to send invalid domains to the CookieStore code, causing DCHECKs. Also prevent invalid DNS addresses from being put in the HOSTS list, when using the internal resolver, as that list is checked before checking if DNS addresses are valid. BUG=632606 Committed: https://crrev.com/d6e9161aff5787fa445cbbbdf8dbc48ac95d38ac Cr-Commit-Position: refs/heads/master@{#417723}

Patch Set 1 #

Patch Set 2 : Remove test line #

Patch Set 3 : NET_EXPORT_PRIVATE #

Total comments: 2

Patch Set 4 : Oops #

Unified diffs Side-by-side diffs Delta from patch set Stats (+37 lines, -19 lines) Patch
M net/dns/dns_hosts.cc View 2 chunks +3 lines, -0 lines 0 comments Download
M net/dns/dns_hosts_unittest.cc View 1 chunk +17 lines, -13 lines 0 comments Download
M net/dns/dns_util.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M net/dns/dns_util.cc View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M net/dns/host_resolver_impl.cc View 1 chunk +1 line, -2 lines 0 comments Download
M net/dns/mock_host_resolver.cc View 1 chunk +8 lines, -4 lines 0 comments Download

Messages

Total messages: 20 (14 generated)
mmenke
Julia, does this seem reasonable?
4 years, 3 months ago (2016-09-09 19:55:17 UTC) #11
Julia Tuttle
lgtm modulo nit. https://codereview.chromium.org/2294343003/diff/40001/net/dns/dns_util.cc File net/dns/dns_util.cc (right): https://codereview.chromium.org/2294343003/diff/40001/net/dns/dns_util.cc#newcode36 net/dns/dns_util.cc:36: // Refuse to convert invalid host ...
4 years, 3 months ago (2016-09-09 20:24:39 UTC) #12
mmenke
https://codereview.chromium.org/2294343003/diff/40001/net/dns/dns_util.cc File net/dns/dns_util.cc (right): https://codereview.chromium.org/2294343003/diff/40001/net/dns/dns_util.cc#newcode36 net/dns/dns_util.cc:36: // Refuse to convert invalid host names. On 2016/09/09 ...
4 years, 3 months ago (2016-09-09 20:38:44 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2294343003/60001
4 years, 3 months ago (2016-09-09 20:39:57 UTC) #16
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 3 months ago (2016-09-09 21:56:03 UTC) #18
commit-bot: I haz the power
4 years, 3 months ago (2016-09-09 21:57:30 UTC) #20
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/d6e9161aff5787fa445cbbbdf8dbc48ac95d38ac
Cr-Commit-Position: refs/heads/master@{#417723}

Powered by Google App Engine
This is Rietveld 408576698