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

Issue 8892004: Add range check to allow for NULL to be counted as data or not by DHCP server. (Closed)

Created:
9 years ago by Jói
Modified:
9 years ago
Reviewers:
eroman, pastarmovj
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org
Visibility:
Public.

Description

Add range check to allow for NULL to be counted as data or not by DHCP server. BUG=106851 TEST=On Windows, fire up Chrome and navigate to a couple of web pages, with proxy settings set to auto-detect. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=114019

Patch Set 1 #

Total comments: 2

Patch Set 2 : Belt and suspenders. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -7 lines) Patch
M net/proxy/dhcp_proxy_script_adapter_fetcher_win.cc View 1 1 chunk +18 lines, -7 lines 1 comment Download

Messages

Total messages: 7 (0 generated)
Jói
pastarmovj: Main reviewer. eroman: net/OWNERS approval. Cheers, Jói
9 years ago (2011-12-09 15:33:55 UTC) #1
pastarmovj
LGTM. Thanks for fixing this!
9 years ago (2011-12-09 15:39:12 UTC) #2
eroman
http://codereview.chromium.org/8892004/diff/1/net/proxy/dhcp_proxy_script_adapter_fetcher_win.cc File net/proxy/dhcp_proxy_script_adapter_fetcher_win.cc (right): http://codereview.chromium.org/8892004/diff/1/net/proxy/dhcp_proxy_script_adapter_fetcher_win.cc#newcode280 net/proxy/dhcp_proxy_script_adapter_fetcher_win.cc:280: return std::string(reinterpret_cast<const char *>(wpad_params.Data)); Can we avoid relying on ...
9 years ago (2011-12-09 20:41:32 UTC) #3
Jói
Thanks Eric, I'm switching to a safer approach as a precaution. Cheers, Jói http://codereview.chromium.org/8892004/diff/1/net/proxy/dhcp_proxy_script_adapter_fetcher_win.cc File ...
9 years ago (2011-12-12 14:33:11 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/joi@chromium.org/8892004/7001
9 years ago (2011-12-12 14:36:20 UTC) #5
commit-bot: I haz the power
Change committed as 114019
9 years ago (2011-12-12 15:36:39 UTC) #6
eroman
9 years ago (2011-12-12 20:52:52 UTC) #7
http://codereview.chromium.org/8892004/diff/7001/net/proxy/dhcp_proxy_script_...
File net/proxy/dhcp_proxy_script_adapter_fetcher_win.cc (right):

http://codereview.chromium.org/8892004/diff/7001/net/proxy/dhcp_proxy_script_...
net/proxy/dhcp_proxy_script_adapter_fetcher_win.cc:285:
wpad_params.nBytesData).c_str());
clever approach!

Powered by Google App Engine
This is Rietveld 408576698