From 7035d391e8d13ccabe3bdf47c2faf4d8af8db24f Mon Sep 17 00:00:00 2001 From: "agl@chromium.org" Date: Tue, 3 Aug 2010 19:06:32 +0000 Subject: Fix valgrind error in unittests. A pointer to a stack allocated buffer was being kept around. The buffer should be static. BUG=49404 TEST=net_unittests http://codereview.chromium.org/3005052/show git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54792 0039d316-1c4b-4281-b951-d872f2087c98 --- net/http/http_auth_handler_negotiate_unittest.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'net') diff --git a/net/http/http_auth_handler_negotiate_unittest.cc b/net/http/http_auth_handler_negotiate_unittest.cc index 7bcf37c..3d331fc 100644 --- a/net/http/http_auth_handler_negotiate_unittest.cc +++ b/net/http/http_auth_handler_negotiate_unittest.cc @@ -52,7 +52,7 @@ class HttpAuthHandlerNegotiateTest : public PlatformTest { L"Negotiate", SEC_E_OK, security_package_.get()); #elif defined(OS_POSIX) // Copied from an actual transaction! - const char kAuthResponse[] = + static const char kAuthResponse[] = "\x60\x82\x02\xCA\x06\x09\x2A\x86\x48\x86\xF7\x12\x01\x02\x02\x01" "\x00\x6E\x82\x02\xB9\x30\x82\x02\xB5\xA0\x03\x02\x01\x05\xA1\x03" "\x02\x01\x0E\xA2\x07\x03\x05\x00\x00\x00\x00\x00\xA3\x82\x01\xC1" -- cgit v1.1