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

Issue 976903002: IPEndPoint::ToString should not crash when the IP address is empty. (Closed)

Created:
5 years, 9 months ago by jiayl
Modified:
5 years, 9 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Do not call IPEndpoint::ToString for empty IP address. Also add more logging to SocketHostTcp for easier debugging. BUG=463680 Committed: https://crrev.com/a572ab9bc342e4d1eac0c1dab3badd82aa5df1fb Cr-Commit-Position: refs/heads/master@{#320136}

Patch Set 1 #

Patch Set 2 : #

Total comments: 1

Patch Set 3 : #

Total comments: 2

Patch Set 4 : nits #

Total comments: 3

Patch Set 5 : nits #

Total comments: 1

Patch Set 6 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -15 lines) Patch
M content/browser/renderer_host/p2p/socket_host_tcp.cc View 1 2 3 4 5 4 chunks +15 lines, -7 lines 0 comments Download
M jingle/glue/proxy_resolving_client_socket.cc View 1 2 3 1 chunk +5 lines, -5 lines 0 comments Download
M net/base/ip_endpoint.h View 1 2 3 1 chunk +2 lines, -3 lines 0 comments Download

Messages

Total messages: 30 (7 generated)
jiayl
PTAL
5 years, 9 months ago (2015-03-04 00:05:10 UTC) #2
jiayl
PTAL
5 years, 9 months ago (2015-03-05 17:09:42 UTC) #4
Ryan Sleevi
-agl I'm inclined to say not LGTM The caller is violating the implicit API contract ...
5 years, 9 months ago (2015-03-05 17:14:52 UTC) #6
jiayl
On 2015/03/05 17:14:52, Ryan Sleevi wrote: > -agl > > I'm inclined to say not ...
5 years, 9 months ago (2015-03-05 17:19:19 UTC) #7
Ryan Sleevi
On 2015/03/05 17:19:19, jiayl wrote: > The API is documented as > // Returns value ...
5 years, 9 months ago (2015-03-05 17:26:35 UTC) #8
jiayl
On 2015/03/05 17:26:35, Ryan Sleevi wrote: > On 2015/03/05 17:19:19, jiayl wrote: > > The ...
5 years, 9 months ago (2015-03-05 17:50:33 UTC) #9
jiayl
PTAL
5 years, 9 months ago (2015-03-05 17:51:20 UTC) #11
Ryan Sleevi
https://codereview.chromium.org/976903002/diff/20001/content/browser/renderer_host/p2p/socket_host_tcp.cc File content/browser/renderer_host/p2p/socket_host_tcp.cc (right): https://codereview.chromium.org/976903002/diff/20001/content/browser/renderer_host/p2p/socket_host_tcp.cc#newcode265 content/browser/renderer_host/p2p/socket_host_tcp.cc:265: result = socket_->GetPeerAddress(&remote_address); How is this possible? I assume ...
5 years, 9 months ago (2015-03-05 18:07:34 UTC) #12
jiayl
On 2015/03/05 18:07:34, Ryan Sleevi wrote: > https://codereview.chromium.org/976903002/diff/20001/content/browser/renderer_host/p2p/socket_host_tcp.cc > File content/browser/renderer_host/p2p/socket_host_tcp.cc (right): > > https://codereview.chromium.org/976903002/diff/20001/content/browser/renderer_host/p2p/socket_host_tcp.cc#newcode265 ...
5 years, 9 months ago (2015-03-05 18:48:34 UTC) #13
jiayl
On 2015/03/05 18:48:34, jiayl wrote: > On 2015/03/05 18:07:34, Ryan Sleevi wrote: > > > ...
5 years, 9 months ago (2015-03-05 18:49:18 UTC) #14
juberti2
On 2015/03/05 18:49:18, jiayl wrote: > On 2015/03/05 18:48:34, jiayl wrote: > > On 2015/03/05 ...
5 years, 9 months ago (2015-03-05 19:11:32 UTC) #15
Ryan Sleevi
On 2015/03/05 19:11:32, juberti2 wrote: > > It's from ProxyResolvingClientSocket::GetPeerAddress, which returns empty ip > ...
5 years, 9 months ago (2015-03-05 19:26:50 UTC) #16
jiayl
On 2015/03/05 19:26:50, Ryan Sleevi wrote: > On 2015/03/05 19:11:32, juberti2 wrote: > > > ...
5 years, 9 months ago (2015-03-06 01:02:00 UTC) #17
Ryan Sleevi
On 2015/03/06 01:02:00, jiayl wrote: > What about return ERR_NAME_NOT_RESOLVED from > ProxyResolvingClientSocket::GetPeerAddress > instead ...
5 years, 9 months ago (2015-03-06 19:37:57 UTC) #18
jiayl
PTAL
5 years, 9 months ago (2015-03-06 20:36:09 UTC) #19
Ryan Sleevi
//net LGTM % nits //jingle has a bug(ish) https://codereview.chromium.org/976903002/diff/40001/jingle/glue/proxy_resolving_client_socket.cc File jingle/glue/proxy_resolving_client_socket.cc (right): https://codereview.chromium.org/976903002/diff/40001/jingle/glue/proxy_resolving_client_socket.cc#newcode361 jingle/glue/proxy_resolving_client_socket.cc:361: net::IPEndPoint(net::IPAddressNumber(), ...
5 years, 9 months ago (2015-03-06 21:23:41 UTC) #20
jiayl
Justin, PTAL.
5 years, 9 months ago (2015-03-09 23:01:56 UTC) #21
juberti2
lgtm % nits https://codereview.chromium.org/976903002/diff/60001/content/browser/renderer_host/p2p/socket_host_tcp.cc File content/browser/renderer_host/p2p/socket_host_tcp.cc (right): https://codereview.chromium.org/976903002/diff/60001/content/browser/renderer_host/p2p/socket_host_tcp.cc#newcode220 content/browser/renderer_host/p2p/socket_host_tcp.cc:220: LOG(WARNING) << "Error from connecting TLS ...
5 years, 9 months ago (2015-03-11 00:59:23 UTC) #22
jiayl
Adding Sergey for jingle/glue
5 years, 9 months ago (2015-03-11 17:34:49 UTC) #24
Sergey Ulanov
lgtm https://codereview.chromium.org/976903002/diff/80001/content/browser/renderer_host/p2p/socket_host_tcp.cc File content/browser/renderer_host/p2p/socket_host_tcp.cc (right): https://codereview.chromium.org/976903002/diff/80001/content/browser/renderer_host/p2p/socket_host_tcp.cc#newcode280 content/browser/renderer_host/p2p/socket_host_tcp.cc:280: VLOG(1) << "Cannot get remote address due to ...
5 years, 9 months ago (2015-03-11 18:35:23 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/976903002/100001
5 years, 9 months ago (2015-03-11 18:37:22 UTC) #28
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years, 9 months ago (2015-03-11 20:27:15 UTC) #29
commit-bot: I haz the power
5 years, 9 months ago (2015-03-11 20:29:09 UTC) #30
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/a572ab9bc342e4d1eac0c1dab3badd82aa5df1fb
Cr-Commit-Position: refs/heads/master@{#320136}

Powered by Google App Engine
This is Rietveld 408576698