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

Issue 2968573002: Check the return value of base::StringToInt() in (Closed)

Created:
3 years, 5 months ago by eroman
Modified:
3 years, 5 months ago
Reviewers:
mmenke
CC:
chromium-reviews, cbentzel+watch_chromium.org, net-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Check the return value of base::StringToInt() in ProxyConfigServiceLinux. The code was assuming it would set the result to 0 on failure, however this is not part of the API contract (the actual contract is weirder). This wouldn't have caused any real bugs, other than some different interpretations of invalid KDE proxy configurations. The CL changes some of those edge cases in arbitrary ways (i.e. overflowed integer is now 0 rather than max_int). BUG=596573 Review-Url: https://codereview.chromium.org/2968573002 Cr-Commit-Position: refs/heads/master@{#483553} Committed: https://chromium.googlesource.com/chromium/src/+/e44498c3ea4925a4868cad26fcee8fb91cd139cd

Patch Set 1 #

Total comments: 8

Patch Set 2 : address mmenke's comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+119 lines, -12 lines) Patch
M net/proxy/proxy_config_service_linux.cc View 1 4 chunks +16 lines, -11 lines 0 comments Download
M net/proxy/proxy_config_service_linux_unittest.cc View 1 4 chunks +103 lines, -1 line 0 comments Download

Messages

Total messages: 19 (13 generated)
eroman
https://codereview.chromium.org/2968573002/diff/1/net/proxy/proxy_config_service_linux.cc File net/proxy/proxy_config_service_linux.cc (right): https://codereview.chromium.org/2968573002/diff/1/net/proxy/proxy_config_service_linux.cc#newcode1116 net/proxy/proxy_config_service_linux.cc:1116: default: // No proxy, or maybe kioslaverc syntax error. ...
3 years, 5 months ago (2017-06-29 21:11:19 UTC) #6
mmenke
LGTM https://codereview.chromium.org/2968573002/diff/1/net/proxy/proxy_config_service_linux.cc File net/proxy/proxy_config_service_linux.cc (right): https://codereview.chromium.org/2968573002/diff/1/net/proxy/proxy_config_service_linux.cc#newcode1137 net/proxy/proxy_config_service_linux.cc:1137: reversed_bypass_list_ = (value == "true" || int_value); On ...
3 years, 5 months ago (2017-06-29 22:21:20 UTC) #7
eroman
https://codereview.chromium.org/2968573002/diff/1/net/proxy/proxy_config_service_linux.cc File net/proxy/proxy_config_service_linux.cc (right): https://codereview.chromium.org/2968573002/diff/1/net/proxy/proxy_config_service_linux.cc#newcode1137 net/proxy/proxy_config_service_linux.cc:1137: reversed_bypass_list_ = (value == "true" || int_value); On 2017/06/29 ...
3 years, 5 months ago (2017-06-29 22:33:59 UTC) #11
mmenke
Still LGTM
3 years, 5 months ago (2017-06-29 22:35:59 UTC) #13
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/2968573002/20001
3 years, 5 months ago (2017-06-29 23:33:42 UTC) #16
commit-bot: I haz the power
3 years, 5 months ago (2017-06-30 00:02:53 UTC) #19
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/e44498c3ea4925a4868cad26fcee...

Powered by Google App Engine
This is Rietveld 408576698