summaryrefslogtreecommitdiffstats
path: root/net/spdy/spdy_test_util_spdy2.cc
diff options
context:
space:
mode:
authorbengr@google.com <bengr@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2012-04-27 18:12:50 +0000
committerbengr@google.com <bengr@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2012-04-27 18:12:50 +0000
commit61b4efcd2a24ed3862775093626247ebddc3f5f0 (patch)
treefd68ca0ecbeaa57986b44f2c1acf2e27fbf44c94 /net/spdy/spdy_test_util_spdy2.cc
parentc8e9110081b2fbde9954c3e88285826afce13d9f (diff)
downloadchromium_src-61b4efcd2a24ed3862775093626247ebddc3f5f0.zip
chromium_src-61b4efcd2a24ed3862775093626247ebddc3f5f0.tar.gz
chromium_src-61b4efcd2a24ed3862775093626247ebddc3f5f0.tar.bz2
Fixed unsafe passing of command-line parameter to SpdySession
The value of --trusted-spdy-proxy (formerly --allow-spdy-proxy-push-across-origins) is now being passed to a SpdySession via HttpNetworkSession::Params. This fixes unsafe memory handling in which a stack-allocated value was being stored in a global char* in spdy_session.cc. BUG= TEST= Review URL: http://codereview.chromium.org/10169033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@134305 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/spdy/spdy_test_util_spdy2.cc')
-rw-r--r--net/spdy/spdy_test_util_spdy2.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/spdy/spdy_test_util_spdy2.cc b/net/spdy/spdy_test_util_spdy2.cc
index 14178df..b933377 100644
--- a/net/spdy/spdy_test_util_spdy2.cc
+++ b/net/spdy/spdy_test_util_spdy2.cc
@@ -939,6 +939,8 @@ HttpNetworkSession* SpdySessionDependencies::SpdyCreateSession(
params.http_auth_handler_factory =
session_deps->http_auth_handler_factory.get();
params.http_server_properties = &session_deps->http_server_properties;
+ params.trusted_spdy_proxy =
+ session_deps->trusted_spdy_proxy;
return new HttpNetworkSession(params);
}