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

Issue 1692353002: Make IP Address related functions return the empty string when used on an invalid address. (Closed)

Created:
4 years, 10 months ago by martijnc
Modified:
4 years, 10 months ago
Reviewers:
eroman, Nico
CC:
cbentzel+watch_chromium.org, chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make IP Address related functions return the empty string when used on an invalid address. BUG=496258 Committed: https://crrev.com/c925513a3212a55d9c56bec2eea2058c47a76612 Cr-Commit-Position: refs/heads/master@{#375701} Committed: https://crrev.com/7246f783ae6b768423ba6caeff7229f3775fd789 Cr-Commit-Position: refs/heads/master@{#376124}

Patch Set 1 : #

Total comments: 2

Patch Set 2 : comments eroman #

Total comments: 8

Patch Set 3 : fixes #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+41 lines, -13 lines) Patch
M net/base/ip_address.h View 1 1 chunk +2 lines, -2 lines 0 comments Download
M net/base/ip_address_number.h View 1 chunk +4 lines, -2 lines 0 comments Download
M net/base/ip_address_number.cc View 1 2 3 chunks +5 lines, -6 lines 1 comment Download
M net/base/ip_address_number_unittest.cc View 2 chunks +8 lines, -0 lines 0 comments Download
M net/base/ip_address_unittest.cc View 2 chunks +12 lines, -0 lines 0 comments Download
M net/base/ip_endpoint.h View 1 chunk +4 lines, -3 lines 0 comments Download
M net/base/ip_endpoint_unittest.cc View 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (9 generated)
martijnc
I also updated IPAddressToStringWithPort() and IPEndPoint::ToString() to return the empty string when called on an ...
4 years, 10 months ago (2016-02-15 21:30:15 UTC) #4
eroman
lgtm https://codereview.chromium.org/1692353002/diff/40001/net/base/ip_address_number.cc File net/base/ip_address_number.cc (right): https://codereview.chromium.org/1692353002/diff/40001/net/base/ip_address_number.cc#newcode116 net/base/ip_address_number.cc:116: if (address_len != kIPv4AddressSize && address_len != kIPv6AddressSize) ...
4 years, 10 months ago (2016-02-16 19:48:52 UTC) #5
martijnc
Thank you. https://codereview.chromium.org/1692353002/diff/40001/net/base/ip_address_number.cc File net/base/ip_address_number.cc (right): https://codereview.chromium.org/1692353002/diff/40001/net/base/ip_address_number.cc#newcode116 net/base/ip_address_number.cc:116: if (address_len != kIPv4AddressSize && address_len != ...
4 years, 10 months ago (2016-02-16 22:02:00 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1692353002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1692353002/60001
4 years, 10 months ago (2016-02-16 22:04:26 UTC) #9
eroman
lgtm
4 years, 10 months ago (2016-02-16 22:07:04 UTC) #10
commit-bot: I haz the power
Committed patchset #2 (id:60001)
4 years, 10 months ago (2016-02-16 23:12:28 UTC) #11
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/c925513a3212a55d9c56bec2eea2058c47a76612 Cr-Commit-Position: refs/heads/master@{#375701}
4 years, 10 months ago (2016-02-16 23:13:40 UTC) #13
Nico
Some of the tests fail here: https://build.chromium.org/p/chromium.fyi/builders/CrWinClang%28dbg%29%20tester/builds/3418 Is it possible the test is incorrect? See ...
4 years, 10 months ago (2016-02-17 02:27:43 UTC) #15
martijnc
https://codereview.chromium.org/1692353002/diff/60001/net/base/ip_address_number_unittest.cc File net/base/ip_address_number_unittest.cc (right): https://codereview.chromium.org/1692353002/diff/60001/net/base/ip_address_number_unittest.cc#newcode39 net/base/ip_address_number_unittest.cc:39: uint8_t addr4[2]; On 2016/02/17 at 02:27:43, Nico wrote: > ...
4 years, 10 months ago (2016-02-17 08:29:53 UTC) #16
henrika (OOO until Aug 14)
A revert of this CL (patchset #2 id:60001) has been created in https://codereview.chromium.org/1708483002/ by henrika@chromium.org. ...
4 years, 10 months ago (2016-02-17 08:58:18 UTC) #17
eroman
https://codereview.chromium.org/1692353002/diff/60001/net/base/ip_address_number.cc File net/base/ip_address_number.cc (right): https://codereview.chromium.org/1692353002/diff/60001/net/base/ip_address_number.cc#newcode128 net/base/ip_address_number.cc:128: return IPAddressToString(&addr.front(), addr.size()); Change &addr.front() to addr.data() https://codereview.chromium.org/1692353002/diff/60001/net/base/ip_address_number.cc#newcode133 net/base/ip_address_number.cc:133: ...
4 years, 10 months ago (2016-02-17 16:11:36 UTC) #18
martijnc
Sorry about this. https://codereview.chromium.org/1692353002/diff/60001/net/base/ip_address_number.cc File net/base/ip_address_number.cc (right): https://codereview.chromium.org/1692353002/diff/60001/net/base/ip_address_number.cc#newcode128 net/base/ip_address_number.cc:128: return IPAddressToString(&addr.front(), addr.size()); On 2016/02/17 at ...
4 years, 10 months ago (2016-02-17 21:46:55 UTC) #19
eroman
lgtm
4 years, 10 months ago (2016-02-17 22:20:54 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1692353002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1692353002/80001
4 years, 10 months ago (2016-02-18 08:02:57 UTC) #22
commit-bot: I haz the power
Committed patchset #3 (id:80001)
4 years, 10 months ago (2016-02-18 09:00:58 UTC) #23
commit-bot: I haz the power
4 years, 10 months ago (2016-02-18 09:02:21 UTC) #25
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/7246f783ae6b768423ba6caeff7229f3775fd789
Cr-Commit-Position: refs/heads/master@{#376124}

Powered by Google App Engine
This is Rietveld 408576698