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

Issue 2539583002: Use overflow-safe string-to-int parsing methods for FTP ports. (Closed)

Created:
4 years ago by mmenke
Modified:
4 years ago
Reviewers:
eroman
CC:
chromium-reviews, cbentzel+watch_chromium.org, Paweł Hajdan Jr.
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use overflow-safe string-to-int parsing methods for FTP ports. BUG=667779, 667797 Committed: https://crrev.com/794079041f3fb283eb888f48c0d806b5427a634a Cr-Commit-Position: refs/heads/master@{#434826}

Patch Set 1 #

Total comments: 13

Patch Set 2 : Response to comments, fix tests #

Total comments: 1

Patch Set 3 : Remove debug lines #

Unified diffs Side-by-side diffs Delta from patch set Stats (+69 lines, -21 lines) Patch
M net/ftp/ftp_network_transaction.cc View 1 2 3 chunks +28 lines, -18 lines 0 comments Download
M net/ftp/ftp_network_transaction_unittest.cc View 1 3 chunks +41 lines, -3 lines 0 comments Download

Messages

Total messages: 18 (11 generated)
mmenke
These overflows seem pretty benign, though I suppose you could imaging all sorts of weird/broken ...
4 years ago (2016-11-28 22:28:18 UTC) #4
eroman
lgtm https://codereview.chromium.org/2539583002/diff/1/net/ftp/ftp_network_transaction.cc File net/ftp/ftp_network_transaction.cc (right): https://codereview.chromium.org/2539583002/diff/1/net/ftp/ftp_network_transaction.cc#newcode132 net/ftp/ftp_network_transaction.cc:132: if (start == epsv_line.npos || epsv_line.length() - start ...
4 years ago (2016-11-28 22:51:57 UTC) #7
mmenke
Thanks! https://codereview.chromium.org/2539583002/diff/1/net/ftp/ftp_network_transaction.cc File net/ftp/ftp_network_transaction.cc (right): https://codereview.chromium.org/2539583002/diff/1/net/ftp/ftp_network_transaction.cc#newcode132 net/ftp/ftp_network_transaction.cc:132: if (start == epsv_line.npos || epsv_line.length() - start ...
4 years ago (2016-11-28 23:15:48 UTC) #9
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/2539583002/40001
4 years ago (2016-11-28 23:20:25 UTC) #13
eroman
https://codereview.chromium.org/2539583002/diff/20001/net/ftp/ftp_network_transaction.cc File net/ftp/ftp_network_transaction.cc (right): https://codereview.chromium.org/2539583002/diff/20001/net/ftp/ftp_network_transaction.cc#newcode138 net/ftp/ftp_network_transaction.cc:138: if (isdigit(separator) || epsv_line[start + 2] != separator || ...
4 years ago (2016-11-28 23:26:17 UTC) #14
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years ago (2016-11-29 01:56:42 UTC) #16
commit-bot: I haz the power
4 years ago (2016-11-29 01:59:34 UTC) #18
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/794079041f3fb283eb888f48c0d806b5427a634a
Cr-Commit-Position: refs/heads/master@{#434826}

Powered by Google App Engine
This is Rietveld 408576698