Deal with truncated chunk.
In case the chunk is truncated, we should not read data from out side of the buffer.

BUG=none
TEST=protocol_parser_unittest.cc

Review URL: http://codereview.chromium.org/6154002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@70958 0039d316-1c4b-4281-b951-d872f2087c98
2 files changed