diff options
author | glider@chromium.org <glider@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-07 09:07:05 +0000 |
---|---|---|
committer | glider@chromium.org <glider@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-07 09:07:05 +0000 |
commit | 0384c1b7fd4aa1bead47e24fa3a6935167737f98 (patch) | |
tree | e59de5effc637027e84eca0e84008684c8e701dc /net | |
parent | 9c34a640b1f697cb9de895e78adb3f08572f537c (diff) | |
download | chromium_src-0384c1b7fd4aa1bead47e24fa3a6935167737f98.zip chromium_src-0384c1b7fd4aa1bead47e24fa3a6935167737f98.tar.gz chromium_src-0384c1b7fd4aa1bead47e24fa3a6935167737f98.tar.bz2 |
Fix the string constant to be exactly 10 characters.
(the sequence of "\012" was in fact treated as an octal literal before)
This bug was found by AddressSanitizer, which detected an out-of-bound read of kMsg2
TBR=rch
Review URL: http://codereview.chromium.org/7839026
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99933 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net')
-rw-r--r-- | net/spdy/spdy_proxy_client_socket_unittest.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/spdy/spdy_proxy_client_socket_unittest.cc b/net/spdy/spdy_proxy_client_socket_unittest.cc index 1754a6c..9d1aaa6 100644 --- a/net/spdy/spdy_proxy_client_socket_unittest.cc +++ b/net/spdy/spdy_proxy_client_socket_unittest.cc @@ -40,7 +40,7 @@ static const int kStreamId = 1; static const char kMsg1[] = "\0hello!\xff"; static const int kLen1 = 8; -static const char kMsg2[] = "\012345678\0"; +static const char kMsg2[] = "\00012345678\0"; static const int kLen2 = 10; static const char kMsg3[] = "bye!"; static const int kLen3 = 4; |