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

Issue 435603008: Fix crash when trying to connect to an IPv6 IP via a SOCKS4 proxy. (Closed)

Created:
6 years, 4 months ago by mmenke
Modified:
6 years, 4 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org
Project:
chromium
Visibility:
Public.

Description

Fix crash when trying to connect to an IPv6 IP via a SOCKS4 proxy. The socks client socket correctly requests the HostResolver only give it IPv4 addresses, but the HostResolver ignored that flag when passed IPs directly. This fixes that behavior. BUG=379031 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=288143

Patch Set 1 #

Patch Set 2 : Fix a couple issues #

Total comments: 4

Patch Set 3 : Response to ttuttle's comments. #

Total comments: 4

Patch Set 4 : Response to eroman's comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+80 lines, -4 lines) Patch
M net/dns/host_resolver_impl.cc View 1 2 3 3 chunks +13 lines, -4 lines 0 comments Download
M net/dns/host_resolver_impl_unittest.cc View 1 chunk +27 lines, -0 lines 0 comments Download
M net/dns/mock_host_resolver.cc View 1 2 chunks +7 lines, -0 lines 0 comments Download
M net/socket/socks_client_socket_unittest.cc View 1 2 2 chunks +33 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
mmenke
PTAL, thanks!
6 years, 4 months ago (2014-08-01 21:03:55 UTC) #1
Deprecated (see juliatuttle)
https://codereview.chromium.org/435603008/diff/20001/net/dns/host_resolver_impl.cc File net/dns/host_resolver_impl.cc (right): https://codereview.chromium.org/435603008/diff/20001/net/dns/host_resolver_impl.cc#newcode2042 net/dns/host_resolver_impl.cc:2042: // Don't return IPv6 addresses if default address family ...
6 years, 4 months ago (2014-08-04 20:32:20 UTC) #2
eroman
lgtm https://codereview.chromium.org/435603008/diff/60001/net/dns/host_resolver_impl.cc File net/dns/host_resolver_impl.cc (right): https://codereview.chromium.org/435603008/diff/60001/net/dns/host_resolver_impl.cc#newcode2040 net/dns/host_resolver_impl.cc:2040: default_address_family_ == ADDRESS_FAMILY_IPV4 && As an aside: I ...
6 years, 4 months ago (2014-08-05 22:33:41 UTC) #3
mmenke
Thanks for the feedback. tuttle: I'll wait for your signoff before landing. https://codereview.chromium.org/435603008/diff/20001/net/dns/host_resolver_impl.cc File net/dns/host_resolver_impl.cc ...
6 years, 4 months ago (2014-08-05 22:50:38 UTC) #4
Deprecated (see juliatuttle)
lgtm
6 years, 4 months ago (2014-08-07 17:56:35 UTC) #5
mmenke
On 2014/08/07 17:56:35, ttuttle wrote: > lgtm Thanks!
6 years, 4 months ago (2014-08-07 17:58:15 UTC) #6
mmenke
The CQ bit was checked by mmenke@chromium.org
6 years, 4 months ago (2014-08-07 17:58:26 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mmenke@chromium.org/435603008/80001
6 years, 4 months ago (2014-08-07 18:09:24 UTC) #8
commit-bot: I haz the power
6 years, 4 months ago (2014-08-07 21:34:20 UTC) #9
Message was sent while issue was closed.
Change committed as 288143

Powered by Google App Engine
This is Rietveld 408576698