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

Issue 1875203002: Refactor FtpCtrlResponseBuffer::ParseLine to use net::ParseInt32() rather than base::StringToInt(). (Closed)

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

Description

Refactor FtpCtrlResponseBuffer::ParseLine to use net::ParseInt32() rather than base::StringToInt(). I don't believe this fixes any actual bug, since the caller is restricting input length and checking output range. It should make it easier to reason about though, since the status_code field is now left as kInvalidStatusCode on failure, whereas before StringToInt() may have modified it. BUG=596546 Committed: https://crrev.com/68da9c5135bad8ed4ed40cb95133d2c313e164a7 Cr-Commit-Position: refs/heads/master@{#386479}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -5 lines) Patch
M net/ftp/ftp_ctrl_response_buffer.cc View 2 chunks +6 lines, -5 lines 0 comments Download

Messages

Total messages: 11 (6 generated)
eroman
4 years, 8 months ago (2016-04-11 19:56:50 UTC) #4
mmenke
LGTM, yea, agree that this doesn't look to fix anything, and doesn't seem in need ...
4 years, 8 months ago (2016-04-11 21:00:32 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1875203002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1875203002/1
4 years, 8 months ago (2016-04-11 21:22:03 UTC) #7
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 8 months ago (2016-04-11 21:36:36 UTC) #9
commit-bot: I haz the power
4 years, 8 months ago (2016-04-11 21:37:48 UTC) #11
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/68da9c5135bad8ed4ed40cb95133d2c313e164a7
Cr-Commit-Position: refs/heads/master@{#386479}

Powered by Google App Engine
This is Rietveld 408576698